1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

* fixing a problem with ffplay being stuck (and not responding to

anything but 'q') when it reaches the end of stream.

Originally committed as revision 3591 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Roman Shaposhnik 2004-10-13 00:10:43 +00:00
parent 664f583665
commit 6e1f8725ef

View File

@ -1439,7 +1439,11 @@ static int decode_thread(void *arg)
}
ret = av_read_frame(ic, pkt);
if (ret < 0) {
break;
if (url_feof(&ic->pb) && url_ferror(&ic->pb) == 0) {
SDL_Delay(100); /* wait for user event */
continue;
} else
break;
}
if (pkt->stream_index == is->audio_stream) {
packet_queue_put(&is->audioq, pkt);