From c03af894eb4baa4ebc0b6d17899d510dab0ec84b Mon Sep 17 00:00:00 2001 From: Björn Axelsson Date: Tue, 6 Nov 2007 16:28:32 +0000 Subject: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 10936 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffplay.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ffplay.c') diff --git a/ffplay.c b/ffplay.c index 2804cf6872..43a1905e72 100644 --- a/ffplay.c +++ b/ffplay.c @@ -1977,8 +1977,10 @@ static int decode_thread(void *arg) else av_read_play(ic); } -#ifdef CONFIG_RTSP_DEMUXER - if (is->paused && !strcmp(ic->iformat->name, "rtsp")) { +#if defined(CONFIG_RTSP_DEMUXER) || defined(CONFIG_MMSH_PROTOCOL) + 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 */ /* XXX: horrible */ SDL_Delay(10); -- cgit v1.2.3