Skip to content
Browse files

register jack ports before activating client

this is the order it should be done. Otherwise there is a problem
if other jack clients (e.g ardour) is already running and you want to
start mlt jack (registering ports fail)
  • Loading branch information...
1 parent d925903 commit e4f80599a2727385a0db330112f499e7cdaf49f1 @eddrog eddrog committed
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/modules/jackrack/filter_jackrack.c
View
10 src/modules/jackrack/filter_jackrack.c
@@ -166,11 +166,6 @@ static void initialise_jack_ports( mlt_properties properties )
sizeof( float *) * channels, mlt_pool_release, NULL );
mlt_properties_set_data( properties, "jack_input_buffers", jack_input_buffers,
sizeof( float *) * channels, mlt_pool_release, NULL );
-
- // Start Jack processing - required before registering ports
- pthread_mutex_lock( &g_activate_mutex );
- jack_activate( jack_client );
- pthread_mutex_unlock( &g_activate_mutex );
// Register Jack ports
for ( i = 0; i < channels; i++ )
@@ -196,6 +191,11 @@ static void initialise_jack_ports( mlt_properties properties )
}
}
+ // Start Jack processing - required before registering ports
+ pthread_mutex_lock( &g_activate_mutex );
+ jack_activate( jack_client );
+ pthread_mutex_unlock( &g_activate_mutex );
+
// Establish connections
for ( i = 0; i < channels; i++ )
{

0 comments on commit e4f8059

Please sign in to comment.
Something went wrong with that request. Please try again.