X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fwestley%2Ffactory.c;h=87853f897613d015be442311a2e1afceb8a6425c;hb=f4963a6aa07644399b273b5d2b1f9299c9047414;hp=91ed5d14d6e298c837dc71c4be48c3970fd428fe;hpb=d33f444d4ef4c7bc4074d07a49eca0ab7d108394;p=melted diff --git a/src/modules/westley/factory.c b/src/modules/westley/factory.c index 91ed5d1..87853f8 100644 --- a/src/modules/westley/factory.c +++ b/src/modules/westley/factory.c @@ -24,29 +24,9 @@ extern mlt_consumer consumer_westley_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ); extern mlt_producer producer_westley_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 { - if ( !strcmp( id, "westley" ) ) - return producer_westley_init( profile, type, id, arg ); - if ( !strcmp( id, "westley-xml" ) ) - return producer_westley_init( profile, type, id, arg ); - return NULL; + MLT_REGISTER( consumer_type, "westley", consumer_westley_init ); + MLT_REGISTER( producer_type, "westley", producer_westley_init ); + MLT_REGISTER( producer_type, "westley-xml", producer_westley_init ); } - -void *mlt_create_filter( mlt_profile profile, mlt_service_type type, const char *id, char *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 ) -{ - if ( !strcmp( id, "westley" ) ) - return consumer_westley_init( profile, type, id, arg ); - return NULL; -} -