From: ddennedy Date: Sat, 20 Dec 2008 08:17:15 +0000 (+0000) Subject: consumer_sdl.c: let it work without filter_avcolour_space X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=1971a6aa9301e7c841b7dda42eab6fff7d69763c;p=melted consumer_sdl.c: let it work without filter_avcolour_space git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1280 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/modules/sdl/consumer_sdl.c b/src/modules/sdl/consumer_sdl.c index 06cbb2c..e8e0eb3 100644 --- a/src/modules/sdl/consumer_sdl.c +++ b/src/modules/sdl/consumer_sdl.c @@ -190,9 +190,12 @@ int consumer_start( mlt_consumer parent ) { mlt_profile profile = mlt_service_profile( MLT_CONSUMER_SERVICE( parent ) ); mlt_filter filter = mlt_factory_filter( profile, "avcolour_space", NULL ); - mlt_properties_set_int( MLT_FILTER_PROPERTIES( filter ), "forced", mlt_image_yuv422 ); - mlt_service_attach( MLT_CONSUMER_SERVICE( parent ), filter ); - mlt_filter_close( filter ); + if ( filter ) + { + mlt_properties_set_int( MLT_FILTER_PROPERTIES( filter ), "forced", mlt_image_yuv422 ); + mlt_service_attach( MLT_CONSUMER_SERVICE( parent ), filter ); + mlt_filter_close( filter ); + } this->filtered = 1; }