ffplay currently needs special handling for pausing in some protocols.
authorBjörn Axelsson <gecko@acc.umu.se>
Tue, 6 Nov 2007 16:28:32 +0000 (16:28 +0000)
committerBenoit Fouet <benoit.fouet@free.fr>
Tue, 6 Nov 2007 16:28:32 +0000 (16:28 +0000)
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

Originally committed as revision 10936 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffplay.c

index 2804cf6872089e954949e8cc4ead9163b2472d7d..43a1905e7210ecfbd44e217b3cc2f71483552b87 100644 (file)
--- 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);