start lash thread only when jack is used and lash is enabled
authorPaul Brossier <piem@altern.org>
Thu, 6 Jul 2006 15:34:38 +0000 (15:34 +0000)
committerPaul Brossier <piem@altern.org>
Thu, 6 Jul 2006 15:34:38 +0000 (15:34 +0000)
start lash thread only when jack is used and lash is enabled

examples/utils.c

index f3d4db7e3cb71c5e5cd16909ad8de1fd3b9eec6d..9b3425799791484707269f2055382760e70f11ff 100644 (file)
@@ -282,9 +282,9 @@ void examples_common_init(int argc,char ** argv) {
       lash_event_t * event = (lash_event_t *)lash_event_new_with_type(LASH_Client_Name);
       lash_event_set_string(event, "aubio");
       lash_send_event(aubio_lash_client, event);
+      pthread_create(&lash_thread, NULL, lash_thread_main, NULL);
     }
   }
-  pthread_create(&lash_thread, NULL, lash_thread_main, NULL);
 #endif /* LASH_SUPPORT */
 
   ibuf      = new_fvec(overlap_size, channels);