Commit c2e9a1fc authored by benoit's avatar benoit

ffplay currently needs special handling for pausing in some protocols.

Patch by Björn Axelsson: bjorn ; axelsson § intinor : se
Original thread: [FFmpeg-devel] [PATCH] MMSH pause support for ffplay
Date: 11/02/2007 11:47 AM


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10936 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d93fe0ea
...@@ -1977,8 +1977,10 @@ static int decode_thread(void *arg) ...@@ -1977,8 +1977,10 @@ static int decode_thread(void *arg)
else else
av_read_play(ic); av_read_play(ic);
} }
#ifdef CONFIG_RTSP_DEMUXER #if defined(CONFIG_RTSP_DEMUXER) || defined(CONFIG_MMSH_PROTOCOL)
if (is->paused && !strcmp(ic->iformat->name, "rtsp")) { if (is->paused &&
(!strcmp(ic->iformat->name, "rtsp") ||
!strcmp(url_fileno(&ic->pb)->prot->name, "mmsh"))) {
/* wait 10 ms to avoid trying to get another packet */ /* wait 10 ms to avoid trying to get another packet */
/* XXX: horrible */ /* XXX: horrible */
SDL_Delay(10); SDL_Delay(10);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment