shithub: aubio

Download patch

ref: 8e3a06701a1c94001c2862c6020e8ec30e4e4f6f
parent: 4b58c435d617409f90591636eae7e8f73df46b3b
author: Paul Brossier <piem@altern.org>
date: Thu Jul 6 11:34:38 EDT 2006

start lash thread only when jack is used and lash is enabled
start lash thread only when jack is used and lash is enabled


--- a/examples/utils.c
+++ b/examples/utils.c
@@ -282,9 +282,9 @@
       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);