]> git.sesse.net Git - mlt/blobdiff - src/modules/opengl/filter_movit_diffusion.cpp
Hide the movit.parms properties from serialization.
[mlt] / src / modules / opengl / filter_movit_diffusion.cpp
index c04c2ce4d98f1d1ed1efc06164e983e72596bf04..40a21de270bc67792e65de9b2a5c8299ef98322f 100644 (file)
@@ -24,6 +24,8 @@
 #include "filter_glsl_manager.h"
 #include <movit/diffusion_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_filter filter = (mlt_filter) mlt_frame_pop_service( frame );
@@ -31,9 +33,9 @@ static int get_image( mlt_frame frame, uint8_t **image, mlt_image_format *format
        GlslManager::get_instance()->lock_service( frame );
        mlt_position position = mlt_filter_get_position( filter, frame );
        mlt_position length = mlt_filter_get_length2( filter, frame );
-       mlt_properties_set_double( properties, "movit.parms.float.radius",
+       mlt_properties_set_double( properties, "_movit.parms.float.radius",
                mlt_properties_anim_get_double( properties, "radius", position, length ) );
-       mlt_properties_set_double( properties, "movit.parms.float.blurred_mix_amount",
+       mlt_properties_set_double( properties, "_movit.parms.float.blurred_mix_amount",
                mlt_properties_anim_get_double( properties, "mix", position, length ) );
        GlslManager::get_instance()->unlock_service( frame );
        *format = mlt_image_glsl;
@@ -60,6 +62,7 @@ mlt_filter filter_movit_diffusion_init( mlt_profile profile, mlt_service_type ty
 
        if ( glsl && ( filter = mlt_filter_new() ) ) {
                mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
+               glsl->add_ref( properties );
                mlt_properties_set_double( properties, "radius", 3.0 );
                mlt_properties_set_double( properties, "mix", 0.3 );
                filter->process = process;