// Create the transition
transition = mlt_factory_transition( "region", NULL );
- // Pass all properties down
- mlt_properties_pass( mlt_transition_properties( transition ), properties, "" );
-
// Register with the filter
mlt_properties_set_data( properties, "_transition", transition, 0, ( mlt_destructor )mlt_transition_close, NULL );
+
+ // Pass a reference to this filter down
+ mlt_properties_set_data( mlt_transition_properties( transition ), "_region_filter", this, 0, NULL, NULL );
}
+ // Pass all properties down
+ mlt_properties_pass( mlt_transition_properties( transition ), properties, "" );
+
// Process the frame
return mlt_transition_process( transition, frame, NULL );
}
// Resource defines the shape of the region
mlt_properties_set( properties, "resource", arg == NULL ? "rectangle" : arg );
+
+ // Ensure that attached filters are handled privately
+ mlt_properties_set_int( properties, "_filter_private", 1 );
}
// Return the filter