diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2004-10-13 00:10:43 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2004-10-13 00:10:43 +0000 |
commit | 6e1f8725ef499daf6d41ccef9b66ce3a1c4bdf2a (patch) | |
tree | 71840266b783fd632560e3719e95bf414848605a /ffplay.c | |
parent | 664f583665dae8351fed064367ea9bfb37624811 (diff) | |
download | ffmpeg-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
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |