From 71dad10fdabd700f036893c725f02c9b4b4ac49b Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sun, 17 Jun 2012 10:30:49 +0000 Subject: Correction problème initialisation DMX (race condition) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2012-violon-leds/trunk@23 6be1fa4d-33ac-4c33-becc-79fcb3794bb6 --- src/music2light.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/music2light.c b/src/music2light.c index 18e6713..b82525b 100644 --- a/src/music2light.c +++ b/src/music2light.c @@ -33,13 +33,13 @@ int main (int argc, char **argv) { mainwin=win_main_build(); gtk_widget_show_all (mainwin); + dmx_init(); + printf("debug : main my_process==%p\n", my_process); printf("debug : main (void *)my_process==%p\n", (void *)my_process); pthread_create (&audio_analyzer, (void *)NULL, (void *)audio_thread, (void *)my_process); g_timeout_add (25, win_main_update_vumeters, (gpointer)vals_for_vumeters); - dmx_init(); - gtk_main (); gdk_threads_leave(); -- cgit v1.2.3