X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fmotion_est%2Ffilter_autotrack_rectangle.c;h=0d526e4547bb3a266a2502edfaa40ba1fac80fa4;hb=8fed66dc54b72d56b6eda6cc266d16eb33979020;hp=bf1b2e1d58943dea4269162d91986483c182630c;hpb=c99d586bda8f113be0b9b0f70f4ee9d6d5ccb623;p=melted diff --git a/src/modules/motion_est/filter_autotrack_rectangle.c b/src/modules/motion_est/filter_autotrack_rectangle.c index bf1b2e1..0d526e4 100644 --- a/src/modules/motion_est/filter_autotrack_rectangle.c +++ b/src/modules/motion_est/filter_autotrack_rectangle.c @@ -268,7 +268,8 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame ) mlt_filter vismv = mlt_properties_get_data( MLT_FILTER_PROPERTIES(this), "_vismv", NULL ); if( vismv == NULL ) { - vismv = mlt_factory_filter( "vismv", NULL ); + mlt_profile profile = mlt_service_profile( MLT_FILTER_SERVICE( this ) ); + vismv = mlt_factory_filter( profile, "vismv", NULL ); mlt_properties_set_data( MLT_FILTER_PROPERTIES(this), "_vismv", vismv, 0, (mlt_destructor)mlt_filter_close, NULL ); } @@ -280,7 +281,8 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame ) mlt_filter obscure = mlt_properties_get_data( MLT_FILTER_PROPERTIES(this), "_obscure", NULL ); if( obscure == NULL ) { - obscure = mlt_factory_filter( "obscure", NULL ); + mlt_profile profile = mlt_service_profile( MLT_FILTER_SERVICE( this ) ); + obscure = mlt_factory_filter( profile, "obscure", NULL ); mlt_properties_set_data( MLT_FILTER_PROPERTIES(this), "_obscure", obscure, 0, (mlt_destructor)mlt_filter_close, NULL ); } @@ -294,7 +296,7 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame ) */ -mlt_filter filter_autotrack_rectangle_init( char *arg ) +mlt_filter filter_autotrack_rectangle_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) { mlt_filter this = mlt_filter_new( ); if ( this != NULL ) @@ -308,7 +310,7 @@ mlt_filter filter_autotrack_rectangle_init( char *arg ) mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "geometry", "100,100:100x100" ); // create an instance of the motion_est and obscure filter - mlt_filter motion_est = mlt_factory_filter( "motion_est", NULL ); + mlt_filter motion_est = mlt_factory_filter( profile, "motion_est", NULL ); if( motion_est != NULL ) mlt_properties_set_data( MLT_FILTER_PROPERTIES(this), "_motion_est", motion_est, 0, (mlt_destructor)mlt_filter_close, NULL ); else {