X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Ffilter_region.c;h=db69b661f193004dc1e2d48cbb12c746206ffce6;hb=9be666396ad8842dc9c37915f652d02bbbffe48a;hp=635b3907e85600c111326b3525f18522a98f4221;hpb=5302781f73a3e9e099fc35b4d5d5807653c4062e;p=melted diff --git a/src/modules/core/filter_region.c b/src/modules/core/filter_region.c index 635b390..db69b66 100644 --- a/src/modules/core/filter_region.c +++ b/src/modules/core/filter_region.c @@ -46,6 +46,9 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame ) // 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 @@ -74,6 +77,9 @@ mlt_filter filter_region_init( void *arg ) // 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