filter_dust.yml: apply description fix patch from Mads Dydensborg.
[melted] / src / modules / qimage / qimage_wrapper.cpp
index 780fb92..2856324 100644 (file)
@@ -92,6 +92,14 @@ void refresh_qimage( mlt_frame frame, int width, int height )
        // Obtain properties of producer
        mlt_properties producer_props = MLT_PRODUCER_PROPERTIES( producer );
 
+       // Check if user wants us to reload the image
+       if ( mlt_properties_get_int( producer_props, "force_reload" ) ) 
+       {
+               qimage = NULL;
+               self->current_image = NULL;
+               mlt_properties_set_int( producer_props, "force_reload", 0 );
+       }
+
        // Obtain the cache flag and structure
        int use_cache = mlt_properties_get_int( producer_props, "cache" );
        mlt_properties cache = ( mlt_properties )mlt_properties_get_data( producer_props, "_cache", NULL );