diff options
author | Mike Melanson <mike@multimedia.cx> | 2002-07-07 00:41:24 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2002-07-07 00:41:24 +0000 |
commit | 7f5d9549f1a44900fa9641f642df6c7910475fae (patch) | |
tree | ba1f216e0861a8aa7367d47dcd79a0dd793c8569 /src | |
parent | 2d0b58d8d87e93e75fdf9de8cf4064870a116765 (diff) | |
download | xine-lib-7f5d9549f1a44900fa9641f642df6c7910475fae.tar.gz xine-lib-7f5d9549f1a44900fa9641f642df6c7910475fae.tar.bz2 |
remembered to unlock the mutex in a few places
CVS patchset: 2223
CVS date: 2002/07/07 00:41:24
Diffstat (limited to 'src')
-rw-r--r-- | src/demuxers/demux_roq.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/demuxers/demux_roq.c b/src/demuxers/demux_roq.c index 910461426..bbb823e4d 100644 --- a/src/demuxers/demux_roq.c +++ b/src/demuxers/demux_roq.c @@ -21,7 +21,7 @@ * For more information regarding the RoQ file format, visit: * http://www.csse.monash.edu.au/~timf/ * - * $Id: demux_roq.c,v 1.7 2002/07/05 17:32:01 mroi Exp $ + * $Id: demux_roq.c,v 1.8 2002/07/07 00:41:24 tmmm Exp $ */ #ifdef HAVE_CONFIG_H @@ -115,7 +115,6 @@ static void *demux_roq_loop (void *this_gen) { } chunk_type = LE_16(&preamble[0]); chunk_size = LE_32(&preamble[2]); -//printf ("loading chunk type %X, %X bytes\n", chunk_type, chunk_size); /* if the chunk is an audio chunk, route it to the audio fifo */ if ((chunk_type == RoQ_SOUND_MONO) || (chunk_type == RoQ_SOUND_STEREO)) { @@ -343,6 +342,7 @@ static int demux_roq_start (demux_plugin_t *this_gen, if (this->input->read(this->input, preamble, RoQ_CHUNK_PREAMBLE_SIZE) != RoQ_CHUNK_PREAMBLE_SIZE) { this->status = DEMUX_FINISHED; + pthread_mutex_unlock(&this->mutex); return this->status; } @@ -411,6 +411,7 @@ static int demux_roq_start (demux_plugin_t *this_gen, this->input->seek(this->input, 8, SEEK_SET); } else { this->status = DEMUX_FINISHED; + pthread_mutex_unlock(&this->mutex); return this->status; } |