summaryrefslogtreecommitdiff
path: root/src/xine-engine/video_decoder.c
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2002-03-11 19:49:07 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2002-03-11 19:49:07 +0000
commit619e78fc07c1b8622eb4f8f43d979fab476c24a2 (patch)
tree4eca59fb253efbc9244c1486b0ff9a8dc4b8c0a0 /src/xine-engine/video_decoder.c
parentface806c1ee187c1efbaa88313c955b9947948db (diff)
downloadxine-lib-619e78fc07c1b8622eb4f8f43d979fab476c24a2.tar.gz
xine-lib-619e78fc07c1b8622eb4f8f43d979fab476c24a2.tar.bz2
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
Diffstat (limited to 'src/xine-engine/video_decoder.c')
-rw-r--r--src/xine-engine/video_decoder.c4
1 files changed, 2 insertions, 2 deletions
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;