X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fdv%2Ffactory.c;h=305fb9cd15a82fe5bfccfd07210aaf813c86be2c;hb=f4963a6aa07644399b273b5d2b1f9299c9047414;hp=694032cf5293ca53c038e856939899587ba1f1f2;hpb=d33f444d4ef4c7bc4074d07a49eca0ab7d108394;p=melted diff --git a/src/modules/dv/factory.c b/src/modules/dv/factory.c index 694032c..305fb9c 100644 --- a/src/modules/dv/factory.c +++ b/src/modules/dv/factory.c @@ -20,34 +20,13 @@ #include -#include -#include +#include extern mlt_consumer consumer_libdv_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ); extern mlt_producer producer_libdv_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 ) -{ - if ( !strcmp( id, "libdv" ) ) - return producer_libdv_init( profile, type, id, arg ); - return NULL; -} - -void *mlt_create_filter( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) +MLT_REPOSITORY { - return NULL; + MLT_REGISTER( consumer_type, "libdv", consumer_libdv_init ); + MLT_REGISTER( producer_type, "libdv", producer_libdv_init ); } - -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, "libdv" ) ) - return consumer_libdv_init( profile, type, id, arg ); - return NULL; -} -