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 );
-plugin_mgr_t *g_mgr = NULL;
+plugin_mgr_t *g_jackrack_plugin_mgr = NULL;
static mlt_properties metadata( mlt_service_type type, const char *id, void *data )
{
if ( !strncmp( id, "ladspa.", 7 ) )
{
// Annotate the yaml properties with ladspa control port info.
- plugin_desc_t *desc = plugin_mgr_get_any_desc( g_mgr, strtol( id + 7, NULL, 10 ) );
+ plugin_desc_t *desc = plugin_mgr_get_any_desc( g_jackrack_plugin_mgr, strtol( id + 7, NULL, 10 ) );
if ( desc )
{
MLT_REPOSITORY
{
GSList *list;
- g_mgr = plugin_mgr_new();
+ g_jackrack_plugin_mgr = plugin_mgr_new();
- for ( list = g_mgr->all_plugins; list; list = g_slist_next( list ) )
+ for ( list = g_jackrack_plugin_mgr->all_plugins; list; list = g_slist_next( list ) )
{
plugin_desc_t *desc = (plugin_desc_t *) list->data;
char *s = malloc( strlen( "ladpsa." ) + 21 );
MLT_REGISTER( filter_type, s, filter_ladspa_init );
MLT_REGISTER_METADATA( filter_type, s, metadata, NULL );
}
- mlt_factory_register_for_clean_up( g_mgr, (mlt_destructor) plugin_mgr_destroy );
+// mlt_factory_register_for_clean_up( g_jackrack_plugin_mgr, (mlt_destructor) plugin_mgr_destroy );
MLT_REGISTER( filter_type, "jackrack", filter_jackrack_init );
MLT_REGISTER_METADATA( filter_type, "jackrack", metadata, NULL );
#define _x (const xmlChar*)
#define _s (const char*)
+extern plugin_mgr_t *g_jackrack_plugin_mgr;
+
jack_rack_t *
jack_rack_new (const char * client_name, unsigned long channels)
{
g_free (rack);
return NULL;
}
- rack->plugin_mgr = plugin_mgr_new ();
+ rack->plugin_mgr = g_jackrack_plugin_mgr;
plugin_mgr_set_plugins (rack->plugin_mgr, channels);
return rack;