Commit 69adcc4f authored by Martin Storsjö's avatar Martin Storsjö Committed by Ronald S. Bultje
Browse files

Use mode=receive instead of mode=play if in RTSP muxer (instead of demuxer)

mode.

Patch by Martin Storsjö <$firstname $firstname st>.

Originally committed as revision 21912 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 52aa4338
...@@ -1109,7 +1109,9 @@ static int make_setup_request(AVFormatContext *s, const char *host, int port, ...@@ -1109,7 +1109,9 @@ static int make_setup_request(AVFormatContext *s, const char *host, int port,
snprintf(transport, sizeof(transport) - 1, snprintf(transport, sizeof(transport) - 1,
"%s/UDP;multicast", trans_pref); "%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) rt->server_type == RTSP_SERVER_WMS)
av_strlcat(transport, ";mode=play", sizeof(transport)); av_strlcat(transport, ";mode=play", sizeof(transport));
snprintf(cmd, sizeof(cmd), snprintf(cmd, sizeof(cmd),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment