From 619e78fc07c1b8622eb4f8f43d979fab476c24a2 Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Mon, 11 Mar 2002 19:49:07 +0000 Subject: Check both BUF_FLAG_END_STREAM and BUF_FLAG_END_USER flag to detect end of stream. Without it, xine-engine stays in XINE_PLAY mode at the end of stream and a subsequent xine_play() is a no-op. CVS patchset: 1555 CVS date: 2002/03/11 19:49:07 --- src/xine-engine/audio_decoder.c | 4 ++-- src/xine-engine/video_decoder.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c index 2e4c9f5c8..0aea0e278 100644 --- a/src/xine-engine/audio_decoder.c +++ b/src/xine-engine/audio_decoder.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: audio_decoder.c,v 1.64 2002/03/11 12:31:26 guenter Exp $ + * $Id: audio_decoder.c,v 1.65 2002/03/11 19:49:07 jkeil Exp $ * * * functions that implement audio decoding @@ -98,7 +98,7 @@ void *audio_decoder_loop (void *this_gen) { pthread_mutex_lock (&this->finished_lock); - if (!this->audio_finished && (buf->decoder_flags==BUF_FLAG_END_USER)) { + if (!this->audio_finished && (buf->decoder_flags & (BUF_FLAG_END_STREAM | BUF_FLAG_END_USER))) { this->audio_finished = 1; if (this->video_finished) { diff --git a/src/xine-engine/video_decoder.c b/src/xine-engine/video_decoder.c index cd8e14142..66421fecb 100644 --- a/src/xine-engine/video_decoder.c +++ b/src/xine-engine/video_decoder.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: video_decoder.c,v 1.76 2002/03/11 12:31:26 guenter Exp $ + * $Id: video_decoder.c,v 1.77 2002/03/11 19:49:07 jkeil Exp $ * */ @@ -155,7 +155,7 @@ void *video_decoder_loop (void *this_gen) { pthread_mutex_lock (&this->finished_lock); this->spu_finished = 1; - if (!this->video_finished && (buf->decoder_flags==BUF_FLAG_END_STREAM)) { + if (!this->video_finished && (buf->decoder_flags & (BUF_FLAG_END_STREAM | BUF_FLAG_END_USER))) { this->video_finished = 1; -- cgit v1.2.3