From c03af894eb4baa4ebc0b6d17899d510dab0ec84b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Axelsson?= Date: Tue, 6 Nov 2007 16:28:32 +0000 Subject: [PATCH] =?UTF-8?q?ffplay=20currently=20needs=20special=20handling?= =?UTF-8?q?=20for=20pausing=20in=20some=20protocols.=20Patch=20by=20Bj?= =?UTF-8?q?=C3=B6rn=20Axelsson:=20bjorn=20;=20axelsson=20=C2=A7=20intinor?= =?UTF-8?q?=20:=20se=20Original=20thread:=20[FFmpeg-devel]=20[PATCH]=20MMS?= =?UTF-8?q?H=20pause=20support=20for=20ffplay=20Date:=2011/02/2007=2011:47?= =?UTF-8?q?=20AM?= 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(-) 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);