]> git.sesse.net Git - mlt/blobdiff - src/modules/plus/filter_affine.c
Massive refactoring of image conversion.
[mlt] / src / modules / plus / filter_affine.c
index cbf6caac073926fbfaa5d63a17a46c87335f2b49..1c05fbd64b0eb6ea51a367828deb99f67e7467c1 100644 (file)
@@ -37,10 +37,12 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
        mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
 
        // Get the image
-       int error = 0; //mlt_frame_get_image( this, image, format, width, height, 0 );
+       int error = 0;
+       *format = mlt_image_yuv422;
+       //mlt_frame_get_image( this, image, format, width, height, 0 );
 
        // Only process if we have no error and a valid colour space
-       if ( error == 0 && *format == mlt_image_yuv422 )
+       if ( error == 0 )
        {
                mlt_producer producer = mlt_properties_get_data( properties, "producer", NULL );
                mlt_transition transition = mlt_properties_get_data( properties, "transition", NULL );
@@ -50,7 +52,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
                {
                        char *background = mlt_properties_get( properties, "background" );
                        mlt_profile profile = mlt_service_profile( MLT_FILTER_SERVICE( filter ) );
-                       producer = mlt_factory_producer( profile, "fezzik", background );
+                       producer = mlt_factory_producer( profile, NULL, background );
                        mlt_properties_set_data( properties, "producer", producer, 0, (mlt_destructor)mlt_producer_close, NULL );
                }