X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsdl%2Ffactory.c;h=68301c2f39b0e209a60521f0b7ff1f5be1ef2910;hb=f4963a6aa07644399b273b5d2b1f9299c9047414;hp=6ec79c003083a3d158cf165759b9882457c0b032;hpb=d33f444d4ef4c7bc4074d07a49eca0ab7d108394;p=melted diff --git a/src/modules/sdl/factory.c b/src/modules/sdl/factory.c index 6ec79c0..68301c2 100644 --- a/src/modules/sdl/factory.c +++ b/src/modules/sdl/factory.c @@ -29,33 +29,12 @@ extern mlt_consumer consumer_sdl_preview_init( mlt_profile profile, mlt_service_ extern mlt_producer producer_sdl_image_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ); #endif -void *mlt_create_producer( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) +MLT_REPOSITORY { + MLT_REGISTER( consumer_type, "sdl", consumer_sdl_init ); + MLT_REGISTER( consumer_type, "sdl_preview", consumer_sdl_preview_init ); + MLT_REGISTER( consumer_type, "sdl_still", consumer_sdl_still_init ); #ifdef WITH_SDL_IMAGE - if ( !strcmp( id, "sdl_image" ) ) - return producer_sdl_image_init( profile, type, id, arg ); + MLT_REGISTER( producer_type, "sdl_image", producer_sdl_image_init ); #endif - return NULL; } - -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, "sdl" ) ) - return consumer_sdl_init( profile, type, id, arg ); - if ( !strcmp( id, "sdl_still" ) ) - return consumer_sdl_still_init( profile, type, id, arg ); - if ( !strcmp( id, "sdl_preview" ) ) - return consumer_sdl_preview_init( profile, type, id, arg ); - return NULL; -} -