aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2004-10-13 00:10:43 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2004-10-13 00:10:43 +0000
commit6e1f8725ef499daf6d41ccef9b66ce3a1c4bdf2a (patch)
tree71840266b783fd632560e3719e95bf414848605a
parent664f583665dae8351fed064367ea9bfb37624811 (diff)
downloadffmpeg-6e1f8725ef499daf6d41ccef9b66ce3a1c4bdf2a.tar.gz
* 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
-rw-r--r--ffplay.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 018cd40283..c8d91997f3 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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);