X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Finigo%2Ffactory.c;h=c1b2d0e7126dc39b521c6fe9851fd0b26379f5a3;hb=16b6d374cf80004b192aae74a55b0452c7ee809d;hp=ef8efcd18c84696db7e87987df9d6dd37c0e26d9;hpb=d33f444d4ef4c7bc4074d07a49eca0ab7d108394;p=melted diff --git a/src/modules/inigo/factory.c b/src/modules/inigo/factory.c index ef8efcd..c1b2d0e 100644 --- a/src/modules/inigo/factory.c +++ b/src/modules/inigo/factory.c @@ -21,30 +21,11 @@ #include #include -extern mlt_producer producer_inigo_file_init( mlt_profile profile, char *file ); -extern mlt_producer producer_inigo_init( mlt_profile profile, char **argv ); +extern mlt_producer producer_inigo_file_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ); +extern mlt_producer producer_inigo_init( mlt_profile profile, mlt_service_type type, const char *id, char **argv ); -void *mlt_create_producer( mlt_profile profile, mlt_service_type type, const char *id, void *arg ) +MLT_REPOSITORY { - if ( !strcmp( id, "inigo_file" ) ) - return producer_inigo_file_init( profile, arg ); - if ( !strcmp( id, "inigo" ) ) - return producer_inigo_init( profile, arg ); - return NULL; + MLT_REGISTER( producer_type, "inigo", producer_inigo_init ); + MLT_REGISTER( producer_type, "inigo_file", producer_inigo_file_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; -} -