#include "filter_glsl_manager.h"
#include <movit/saturation_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 );
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.saturation",
+ mlt_properties_set_double( properties, "_movit.parms.float.saturation",
mlt_properties_anim_get_double( properties, "saturation", position, length ) );
GlslManager::get_instance()->unlock_service( frame );
*format = mlt_image_glsl;
if ( glsl && ( filter = mlt_filter_new() ) ) {
mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
+ glsl->add_ref( properties );
mlt_properties_set( properties, "saturation", arg? arg : "1.0" );
filter->process = process;
}