Browse Source

* 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
tags/v0.5
Roman Shaposhnik 21 years ago
parent
commit
6e1f8725ef
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      ffplay.c

+ 5
- 1
ffplay.c 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);


Loading…
Cancel
Save