summaryrefslogtreecommitdiff
path: root/games-emulation/zsnes/files/zsnes-1.51-libao-thread.patch
blob: 1ae0a1467b3e4c03da0e05bc7c9bbfdd60882ae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- a/linux/audio.c.old   2007-01-09 20:19:12.000000000 -0500 
+++ b/linux/audio.c   2007-12-30 20:33:07.000000000 -0500 
@@ -177,11 +177,7 @@ 
   }
   else
   {
-    if (pthread_create(&audio_thread, 0, SoundThread_ao, 0))
-    {
-      puts("pthread_create() failed.");
-    }
-    else if (pthread_mutex_init(&audio_mutex, 0))
+    if (pthread_mutex_init(&audio_mutex, 0))
     {
       puts("pthread_mutex_init() failed.");
     }
@@ -189,6 +185,10 @@
     {
       puts("pthread_cond_init() failed.");
     }
+    else if (pthread_create(&audio_thread, 0, SoundThread_ao, 0))
+    {
+      puts("pthread_create() failed.");
+    }
     InitSampleControl();
   }