]> git.sesse.net Git - mlt/blobdiff - src/modules/opengl/filter_movit_resample.cpp
Hide the movit.parms properties from serialization.
[mlt] / src / modules / opengl / filter_movit_resample.cpp
index 1b76339e1dcf076fdb329921f5c62878aed390fd..4611fe2f49b4c29d6c25fd7bba5ffecfc2e04799 100644 (file)
@@ -25,6 +25,8 @@
 #include <movit/resample_effect.h>
 #include "optional_effect.h"
 
+using namespace movit;
+
 static int get_image( mlt_frame frame, uint8_t **image, mlt_image_format *format, int *width, int *height, int writable )
 {
        mlt_properties properties = MLT_FRAME_PROPERTIES( frame );
@@ -61,11 +63,11 @@ static int get_image( mlt_frame frame, uint8_t **image, mlt_image_format *format
                mlt_properties_set_int( properties, "consumer_deinterlace", 1 );
 
        GlslManager::get_instance()->lock_service( frame );
-       mlt_properties_set_int( filter_properties, "movit.parms.int.width", owidth );
-       mlt_properties_set_int( filter_properties, "movit.parms.int.height", oheight );
+       mlt_properties_set_int( filter_properties, "_movit.parms.int.width", owidth );
+       mlt_properties_set_int( filter_properties, "_movit.parms.int.height", oheight );
 
        bool disable = ( iwidth == owidth && iheight == oheight );
-       mlt_properties_set_int( filter_properties, "movit.disable", disable );
+       mlt_properties_set_int( filter_properties, "_movit.parms.int.disable", disable );
 
        *width = owidth;
        *height = oheight;
@@ -100,6 +102,8 @@ mlt_filter filter_movit_resample_init( mlt_profile profile, mlt_service_type typ
        GlslManager* glsl = GlslManager::get_instance();
 
        if ( glsl && ( filter = mlt_filter_new() ) ) {
+               mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
+               glsl->add_ref( properties );
                filter->process = process;
        }
        return filter;