[FFmpeg-cvslog] r10936 - trunk/ffplay.c

benoit subversion
Tue Nov 6 17:28:32 CET 2007


Author: benoit
Date: Tue Nov  6 17:28:32 2007
New Revision: 10936

Log:
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


Modified:
   trunk/ffplay.c

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	(original)
+++ trunk/ffplay.c	Tue Nov  6 17:28:32 2007
@@ -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);




More information about the ffmpeg-cvslog mailing list