- Effect* effect = GlslManager::get_effect( MLT_FILTER_SERVICE( filter ), frame );
- if ( effect ) {
- bool ok = effect->set_int( "width", *width );
- ok |= effect->set_int( "height", *height );
- ok |= effect->set_float( "left", rect.x );
- ok |= effect->set_float( "top", rect.y );
- assert(ok);
- }
+ mlt_properties_set_int( filter_properties, "movit.parms.int.width", *width );
+ mlt_properties_set_int( filter_properties, "movit.parms.int.height", *height );
+ mlt_properties_set_double( filter_properties, "movit.parms.float.left", rect.x );
+ mlt_properties_set_double( filter_properties, "movit.parms.float.top", rect.y );
+
+ bool disable = ( *width == owidth && *height == oheight );
+ mlt_properties_set_int( filter_properties, "movit.disable", disable );
+