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