diff options
author | Martin Storsjö <martin@martin.st> | 2012-06-18 16:19:33 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-06-18 21:35:28 +0300 |
commit | bbc8038614df85b608a11baaa2770f0d342d26fc (patch) | |
tree | 705978458f8e25f30465bc1e37d46f5408b156c6 | |
parent | db28b01dcf089f7f470def6b3a482a88908893d8 (diff) | |
download | ffmpeg-bbc8038614df85b608a11baaa2770f0d342d26fc.tar.gz |
rtsp: Send mode=record instead of mode=receive
This seems to be the correct mode to send, according to the
original RTSP RFC, and matches the method RECORD which is
sent later when starting to send data.
Darwin Streaming Server works fine with either of them.
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 19fdaf1c4b..a70ea04df2 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1284,7 +1284,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port, "%s/UDP;multicast", trans_pref); } if (s->oformat) { - av_strlcat(transport, ";mode=receive", sizeof(transport)); + av_strlcat(transport, ";mode=record", sizeof(transport)); } else if (rt->server_type == RTSP_SERVER_REAL || rt->server_type == RTSP_SERVER_WMS) av_strlcat(transport, ";mode=play", sizeof(transport)); |