mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
09646bab63
commit
0c904df2b6
3
ffplay.c
3
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;
|
||||
|
Loading…
Reference in New Issue
Block a user