producer_pixbuf.c: bugfix (kdenlive-575) memory leak; revert unnecessary part of...
[melted] / src / modules / gtk2 / producer_pixbuf.c
index 591631c..9e0d4cf 100644 (file)
@@ -490,6 +490,9 @@ static int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int i
                // Ensure that we have a way to obtain the position in the get_image
                mlt_properties_set_position( properties, "pixbuf_position", mlt_producer_position( producer ) );
 
+               // Refresh the image
+               refresh_image( *frame, 0, 0 );
+
                // Set producer-specific frame properties
                mlt_properties_set_int( properties, "progressive", mlt_properties_get_int( producer_properties, "progressive" ) );
                mlt_properties_set_double( properties, "aspect_ratio", mlt_properties_get_double( producer_properties, "aspect_ratio" ) );