diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-01-14 20:22:11 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-01-14 20:22:11 +0000 |
commit | 0c904df2b667d4318828d9d06638125d3079b1b9 (patch) | |
tree | dd4a58dacf570301cf405eef11e4e6f9fa40796f /ffplay.c | |
parent | 09646bab63a87b2d2810b213b49bfdea799c7145 (diff) | |
download | ffmpeg-0c904df2b667d4318828d9d06638125d3079b1b9.tar.gz |
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
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |