#include <string.h>
#include <assert.h>
-#include "glsl_manager.h"
+#include "filter_glsl_manager.h"
#include <movit/mix_effect.h>
static int get_image( mlt_frame frame, uint8_t **image, mlt_image_format *format, int *width, int *height, int writable )
GlslManager::get_instance()->lock_service( frame );
Effect* effect = GlslManager::get_effect( filter, frame );
if ( effect ) {
- bool ok = effect->set_float( "strength_first", mlt_properties_get_double( properties, "opacity" ) );
+ mlt_position position = mlt_filter_get_position( filter, frame );
+ mlt_position length = mlt_filter_get_length2( filter, frame );
+ bool ok = effect->set_float( "strength_first",
+ mlt_properties_anim_get_double( properties, "opacity", position, length ) );
assert(ok);
}
GlslManager::get_instance()->unlock_service( frame );