X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fjackrack%2Ffactory.c;h=1476b153d27beb7c125cde02eb6f2e1cd43cffaa;hb=ee523db03a44cbda4b5def55e0c36427ab6a0747;hp=e3121f26e82b70cfedde4c61207c27373590e5c5;hpb=d33f444d4ef4c7bc4074d07a49eca0ab7d108394;p=melted diff --git a/src/modules/jackrack/factory.c b/src/modules/jackrack/factory.c index e3121f2..1476b15 100644 --- a/src/modules/jackrack/factory.c +++ b/src/modules/jackrack/factory.c @@ -24,26 +24,8 @@ extern mlt_filter filter_jackrack_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ); extern mlt_filter filter_ladspa_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ); -void *mlt_create_producer( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) +MLT_REPOSITORY { - return NULL; -} - -void *mlt_create_filter( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) -{ - if ( !strcmp( id, "jackrack" ) ) - return filter_jackrack_init( profile, type, id, arg ); - else if ( !strcmp( id, "ladspa" ) ) - return filter_ladspa_init( profile, type, id, arg ); - return NULL; -} - -void *mlt_create_transition( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) -{ - return NULL; -} - -void *mlt_create_consumer( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) -{ - return NULL; + MLT_REGISTER( filter_type, "jackrack", filter_jackrack_init ); + MLT_REGISTER( filter_type, "ladspa", filter_ladspa_init ); }