diff options
Diffstat (limited to 'src/demuxers/demux_fli.c')
-rw-r--r-- | src/demuxers/demux_fli.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/demuxers/demux_fli.c b/src/demuxers/demux_fli.c index 48e5c32a0..53f85d545 100644 --- a/src/demuxers/demux_fli.c +++ b/src/demuxers/demux_fli.c @@ -22,7 +22,7 @@ * avoid while programming a FLI decoder, visit: * http://www.pcisys.net/~melanson/codecs/ * - * $Id: demux_fli.c,v 1.15 2002/10/06 03:48:13 komadori Exp $ + * $Id: demux_fli.c,v 1.16 2002/10/12 17:11:58 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> @@ -157,6 +158,8 @@ static void *demux_fli_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 ); } |