Permalink
Browse files

Merge pull request #15 from eddrog/master

register jack ports before activating client
  • Loading branch information...
2 parents d925903 + 9fb3b19 commit 323a94320e038ce4afb8ce1107c1c9e186809dc6 @ddennedy ddennedy committed Oct 28, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 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
+ 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 323a943

Please sign in to comment.