# HG changeset patch # User rbultje # Date 1266621119 0 # Node ID 76cb8ea11c47a7e9f2372cc8a6ab9a0d2e3df73f # Parent 545f70d48943efd329cd3d33cf38323c4fba7135 Use mode=receive instead of mode=play if in RTSP muxer (instead of demuxer) mode. Patch by Martin Storsj <$firstname $firstname st>. diff -r 545f70d48943 -r 76cb8ea11c47 rtsp.c --- 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),