diff options
author | Mike Melanson <mike@multimedia.cx> | 2002-08-01 03:56:31 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2002-08-01 03:56:31 +0000 |
commit | 0ba07a109bf3dad4feca7d4ab4a58af2ca9120d8 (patch) | |
tree | 0e792cb907deb0cb1f013662d1a60b543d88e32a /src/demuxers/demux_smjpeg.c | |
parent | da6b4de729aa7220c844ea9fa8ba4c887fd3cb0f (diff) | |
download | xine-lib-0ba07a109bf3dad4feca7d4ab4a58af2ca9120d8.tar.gz xine-lib-0ba07a109bf3dad4feca7d4ab4a58af2ca9120d8.tar.bz2 |
always return DEMUX_OK at the very end of the _start() function
CVS patchset: 2376
CVS date: 2002/08/01 03:56:31
Diffstat (limited to 'src/demuxers/demux_smjpeg.c')
-rw-r--r-- | src/demuxers/demux_smjpeg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/demuxers/demux_smjpeg.c b/src/demuxers/demux_smjpeg.c index 4d267e95e..bbeaae45d 100644 --- a/src/demuxers/demux_smjpeg.c +++ b/src/demuxers/demux_smjpeg.c @@ -21,7 +21,7 @@ * For more information on the SMJPEG file format, visit: * http://www.lokigames.com/development/smjpeg.php3 * - * $Id: demux_smjpeg.c,v 1.5 2002/07/19 14:07:38 pmhahn Exp $ + * $Id: demux_smjpeg.c,v 1.6 2002/08/01 03:56:31 tmmm Exp $ */ #ifdef HAVE_CONFIG_H @@ -130,7 +130,7 @@ static void *demux_smjpeg_loop (void *this_gen) { if (this->input->read(this->input, preamble, SMJPEG_CHUNK_PREAMBLE_SIZE) != SMJPEG_CHUNK_PREAMBLE_SIZE) { this->status = DEMUX_FINISHED; - return NULL; + continue; /* skip to next while() iteration to bail out */ } chunk_tag = BE_32(&preamble[0]); @@ -148,6 +148,8 @@ static void *demux_smjpeg_loop (void *this_gen) { pts = BE_32(&preamble[4]); pts *= 90; +//printf ("sending %s frame with pts %lld (timestamp = %d ms)\n", +// (chunk_tag == sndD_TAG) ? "audio" : "video", pts, BE_32(&preamble[4])); /* break up the data into packets and dispatch them */ if (((chunk_tag == sndD_TAG) && this->audio_fifo && this->audio_type) || (chunk_tag == vidD_TAG)) { @@ -196,7 +198,6 @@ static void *demux_smjpeg_loop (void *this_gen) { } -#if 1 /* wait before sending end buffers: user might want to do a new seek */ while(this->send_end_buffers && this->video_fifo->size(this->video_fifo) && this->status != DEMUX_OK){ @@ -204,7 +205,6 @@ static void *demux_smjpeg_loop (void *this_gen) { xine_usec_sleep(100000); pthread_mutex_lock( &this->mutex ); } -#endif } while (this->status == DEMUX_OK); @@ -452,7 +452,7 @@ this->video_type = BUF_VIDEO_JPEG; pthread_mutex_unlock(&this->mutex); - return this->status; + return DEMUX_OK; } static int demux_smjpeg_seek (demux_plugin_t *this_gen, |