]> git.sesse.net Git - mlt/blobdiff - src/modules/sdl/consumer_sdl.c
Massive refactoring of image conversion.
[mlt] / src / modules / sdl / consumer_sdl.c
index 38322370235bbf8aa1b26f4c4c5e8992bba79b7a..13c4a0c2895caaf174190281f16b8262f9ce8aaf 100644 (file)
@@ -64,7 +64,6 @@ struct consumer_sdl_s
        SDL_Rect rect;
        uint8_t *buffer;
        int bpp;
-       int filtered;
 };
 
 /** Forward references to static functions.
@@ -183,20 +182,6 @@ int consumer_start( mlt_consumer parent )
 
                this->bpp = mlt_properties_get_int( this->properties, "bpp" );
 
-               // Attach a colour space converter
-               if ( preview_off && !this->filtered )
-               {
-                       mlt_profile profile = mlt_service_profile( MLT_CONSUMER_SERVICE( parent ) );
-                       mlt_filter filter = mlt_factory_filter( profile, "avcolour_space", NULL );
-                       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;
-               }
-       
                if ( sdl_started == 0 && display_off == 0 )
                {
                        if ( SDL_Init( SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE ) < 0 )