From 0c904df2b667d4318828d9d06638125d3079b1b9 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 14 Jan 2004 20:22:11 +0000 Subject: [PATCH] dont let the demuxer thread die before the video has actually been played as seeking would become impossible shortly before EOF Originally committed as revision 2705 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffplay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ffplay.c b/ffplay.c index df2fdc1b9b..0e76aeaef2 100644 --- a/ffplay.c +++ b/ffplay.c @@ -1423,7 +1423,8 @@ static int decode_thread(void *arg) /* if the queue are full, no need to read more */ if (is->audioq.size > MAX_AUDIOQ_SIZE || - is->videoq.size > MAX_VIDEOQ_SIZE) { + is->videoq.size > MAX_VIDEOQ_SIZE || + url_feof(&ic->pb)) { /* wait 10 ms */ SDL_Delay(10); continue;