X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fqimage%2Fqimage_wrapper.cpp;h=2856324b240ca047d0962dd82811d77d5888ea29;hb=70933f360aa7d16e5140267ce2f716de924464c7;hp=780fb92c384a11931c07961dd996eb5a3d5beadd;hpb=e5ee7c6536414a7cda90ca14f48110222e97b866;p=melted diff --git a/src/modules/qimage/qimage_wrapper.cpp b/src/modules/qimage/qimage_wrapper.cpp index 780fb92..2856324 100644 --- a/src/modules/qimage/qimage_wrapper.cpp +++ b/src/modules/qimage/qimage_wrapper.cpp @@ -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 );