X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Ffezzik%2Ffactory.c;h=87f22b98ad68e7b93ab402b7ec773903b5f201dc;hb=6c95a9df3eee556eb8375fdee25c1d5469642745;hp=33bfb079ea1e5d7bb55771445ba82874b300602f;hpb=d33f444d4ef4c7bc4074d07a49eca0ab7d108394;p=melted diff --git a/src/modules/fezzik/factory.c b/src/modules/fezzik/factory.c index 33bfb07..87f22b9 100644 --- a/src/modules/fezzik/factory.c +++ b/src/modules/fezzik/factory.c @@ -24,27 +24,8 @@ extern mlt_producer producer_fezzik_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ); extern mlt_producer producer_hold_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, "fezzik" ) ) - return producer_fezzik_init( profile, type, id, arg ); - if ( !strcmp( id, "hold" ) ) - return producer_hold_init( profile, type, id, arg ); - return NULL; + MLT_REGISTER( producer_type, "fezzik", producer_fezzik_init ); + MLT_REGISTER( producer_type, "hold", producer_hold_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 ) -{ - return NULL; -} -