changeset 5678:76cb8ea11c47 libavformat

Use mode=receive instead of mode=play if in RTSP muxer (instead of demuxer) mode. Patch by Martin Storsj <$firstname $firstname st>.
author rbultje
date Fri, 19 Feb 2010 23:11:59 +0000
parents 545f70d48943
children 4e5c3a9c1f6c
files rtsp.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Fri Feb 19 23:10:19 2010 +0000
+++ b/rtsp.c	Fri Feb 19 23:11:59 2010 +0000
@@ -1109,7 +1109,9 @@
             snprintf(transport, sizeof(transport) - 1,
                      "%s/UDP;multicast", trans_pref);
         }
-        if (rt->server_type == RTSP_SERVER_REAL ||
+        if (s->oformat) {
+            av_strlcat(transport, ";mode=receive", sizeof(transport));
+        } else if (rt->server_type == RTSP_SERVER_REAL ||
             rt->server_type == RTSP_SERVER_WMS)
             av_strlcat(transport, ";mode=play", sizeof(transport));
         snprintf(cmd, sizeof(cmd),