]> git.sesse.net Git - mlt/blobdiff - src/modules/swfdec/producer_swfdec.c
Refactor to use mlt_frame_set_image/_alpha.
[mlt] / src / modules / swfdec / producer_swfdec.c
index 8f0d7008b4b45baebc20e1f0b1dd2c1d6f31a553..a58d48c7927aa66d1f2beff1fb483438b3c4c991 100644 (file)
@@ -125,7 +125,7 @@ static int get_image( mlt_frame frame, uint8_t **buffer, mlt_image_format *forma
        *format = mlt_image_rgb24a;
 
        *buffer = mlt_pool_alloc( *width * ( *height + 1 ) * 4 );
-       mlt_properties_set_data( properties, "image", *buffer, *width * ( *height + 1 ) * 4, (mlt_destructor) mlt_pool_release, NULL );
+       mlt_frame_set_image( frame, *buffer, *width * ( *height + 1 ) * 4, mlt_pool_release );
 
        // Seek
        mlt_position pos = mlt_properties_get_position( properties, "swfdec.position" );