summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_wc3movie.c
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2002-10-12 17:11:58 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2002-10-12 17:11:58 +0000
commit0314fd1631454084e823e94918edb79019b96e63 (patch)
tree16e791f3f11c2571318d3741b27564c61e27093f /src/demuxers/demux_wc3movie.c
parentbf4abc064662be3f8a52a7fcff159e6379800ab9 (diff)
downloadxine-lib-0314fd1631454084e823e94918edb79019b96e63.tar.gz
xine-lib-0314fd1631454084e823e94918edb79019b96e63.tar.bz2
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
Diffstat (limited to 'src/demuxers/demux_wc3movie.c')
-rw-r--r--src/demuxers/demux_wc3movie.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/demuxers/demux_wc3movie.c b/src/demuxers/demux_wc3movie.c
index 5b19de52d..68c95fb79 100644
--- a/src/demuxers/demux_wc3movie.c
+++ b/src/demuxers/demux_wc3movie.c
@@ -22,7 +22,7 @@
* For more information on the MVE file format, visit:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: demux_wc3movie.c,v 1.16 2002/10/06 03:48:13 komadori Exp $
+ * $Id: demux_wc3movie.c,v 1.17 2002/10/12 17:11:59 jkeil Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -33,6 +33,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <pthread.h>
+#include <sched.h>
#include <string.h>
#include <stdlib.h>
@@ -170,6 +171,8 @@ static void *demux_mve_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 );
/* compensate for the initial data in the file */