From 0314fd1631454084e823e94918edb79019b96e63 Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Sat, 12 Oct 2002 17:11:58 +0000 Subject: While the demuxer mutex is unlocked, relinquish the processor in the main demuxer loop, otherwise (on solaris) demux_*_stop() has no chance to lock the mutex and change the demuxer status variable for interrupting the demuxer. Fixes xine_stop() problems on solaris. CVS patchset: 2815 CVS date: 2002/10/12 17:11:58 --- src/demuxers/demux_cda.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/demuxers/demux_cda.c') diff --git a/src/demuxers/demux_cda.c b/src/demuxers/demux_cda.c index efbb0d3b1..993d011ab 100644 --- a/src/demuxers/demux_cda.c +++ b/src/demuxers/demux_cda.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_cda.c,v 1.25 2002/09/21 20:27:02 tmmm Exp $ + * $Id: demux_cda.c,v 1.26 2002/10/12 17:11:58 jkeil Exp $ */ #ifdef HAVE_CONFIG_H @@ -28,6 +28,7 @@ #include #include #include +#include #include #include @@ -104,6 +105,8 @@ static void *demux_cda_loop (void *this_gen) { /* someone may want to interrupt us */ pthread_mutex_unlock( &this->mutex ); + /* give demux_*_stop a chance to interrupt us */ + sched_yield(); pthread_mutex_lock( &this->mutex ); } -- cgit v1.2.3