$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