summaryrefslogtreecommitdiff
path: root/audio/xmms-mad/patches/patch-ab
blob: 7d43bc2dc9c765969d3b8554cd7cea34633fc17a (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
$NetBSD: patch-ab,v 1.3 2003/12/17 03:27:17 simonb Exp $

--- src/xmms-mad.c.orig	Thu Oct  2 22:15:58 2003
+++ src/xmms-mad.c
@@ -142,6 +142,9 @@ xmmsmad_stop ()
       g_message ("waiting for thread");
 #endif /* DEBUG */
       pthread_join (*decode_thread, 0);
+#ifdef _PTH_PTHREAD_H_
+      sched_yield ();
+#endif
 #ifdef DEBUG
       g_message ("thread done");
 #endif /* DEBUG */
@@ -186,6 +189,9 @@ xmmsmad_play_file (char *url)
       g_free (decode_thread);
       decode_thread = 0;
     }
+#ifdef _PTH_PTHREAD_H_
+      sched_yield ();
+#endif
 }
 
 static void