X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fwestley%2Ffactory.c;h=87853f897613d015be442311a2e1afceb8a6425c;hb=f4963a6aa07644399b273b5d2b1f9299c9047414;hp=aedda3090a6d3ce704e06595733fda1a94219797;hpb=bf3264b9e340ba5c11cbf59835a8af3db94e0cc2;p=melted diff --git a/src/modules/westley/factory.c b/src/modules/westley/factory.c index aedda30..87853f8 100644 --- a/src/modules/westley/factory.c +++ b/src/modules/westley/factory.c @@ -19,33 +19,14 @@ */ #include +#include -#include "consumer_westley.h" -#include "producer_westley.h" +extern mlt_consumer consumer_westley_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ); +extern mlt_producer producer_westley_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ); -void *mlt_create_producer( char *id, void *arg ) +MLT_REPOSITORY { - if ( !strcmp( id, "westley" ) ) - return producer_westley_init( 0, arg ); - if ( !strcmp( id, "westley-xml" ) ) - return producer_westley_init( 1, arg ); - return NULL; + MLT_REGISTER( consumer_type, "westley", consumer_westley_init ); + MLT_REGISTER( producer_type, "westley", producer_westley_init ); + MLT_REGISTER( producer_type, "westley-xml", producer_westley_init ); } - -void *mlt_create_filter( char *id, void *arg ) -{ - return NULL; -} - -void *mlt_create_transition( char *id, void *arg ) -{ - return NULL; -} - -void *mlt_create_consumer( char *id, void *arg ) -{ - if ( !strcmp( id, "westley" ) ) - return consumer_westley_init( arg ); - return NULL; -} -