X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fgtk2%2Ffactory.c;h=34d62e263b4c030bc93852cfe526c990006add50;hb=c54a5c51667c3f83bdfe951574e3dff768284455;hp=8b5e1123002c225a83c9f2100c2a877223b02e9d;hpb=d33f444d4ef4c7bc4074d07a49eca0ab7d108394;p=melted diff --git a/src/modules/gtk2/factory.c b/src/modules/gtk2/factory.c index 8b5e112..34d62e2 100644 --- a/src/modules/gtk2/factory.c +++ b/src/modules/gtk2/factory.c @@ -46,7 +46,7 @@ static void initialise( ) } } -void *mlt_create_producer( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) +void *create_service( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) { initialise( ); @@ -60,30 +60,11 @@ void *mlt_create_producer( mlt_profile profile, mlt_service_type type, const cha return producer_pango_init( arg ); #endif - return NULL; -} - -void *mlt_create_filter( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) -{ - initialise( ); - #ifdef USE_PIXBUF if ( !strcmp( id, "gtkrescale" ) ) return filter_rescale_init( profile, arg ); #endif - 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, void *arg ) -{ - initialise( ); - #ifdef USE_GTK2 if ( !strcmp( id, "gtk2_preview" ) ) return consumer_gtk2_preview_init( profile, arg ); @@ -92,3 +73,10 @@ void *mlt_create_consumer( mlt_profile profile, mlt_service_type type, const cha return NULL; } +MLT_REPOSITORY +{ + MLT_REGISTER( consumer_type, "gtk2_preview", create_service ); + MLT_REGISTER( filter_type, "gtkrescale", create_service ); + MLT_REGISTER( producer_type, "pango", create_service ); + MLT_REGISTER( producer_type, "pixbuf", create_service ); +}