Apply ldflags-order part of ldflags_order patch from Alberto Villa.
[melted] / src / modules / jackrack / factory.c
index e3121f2..1476b15 100644 (file)
 extern mlt_filter filter_jackrack_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
 extern mlt_filter filter_ladspa_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 )
+MLT_REPOSITORY
 {
-       return NULL;
-}
-
-void *mlt_create_filter( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
-{
-       if ( !strcmp( id, "jackrack" ) )
-               return filter_jackrack_init( profile, type, id, arg );
-       else if ( !strcmp( id, "ladspa" ) )
-               return filter_ladspa_init( profile, type, id, 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;
+       MLT_REGISTER( filter_type, "jackrack", filter_jackrack_init );
+       MLT_REGISTER( filter_type, "ladspa", filter_ladspa_init );
 }