Only send out NAT-punching RTP/RTCP packets when we're in demuxer mode, i.e.

don't send them when acting as a RTSP muxer.

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

Originally committed as revision 21913 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Martin Storsjö 15 years ago committed by Ronald S. Bultje
parent 69adcc4ffb
commit 30ff7c5cbc
  1. 2
      libavformat/rtsp.c

@ -1177,7 +1177,7 @@ static int make_setup_request(AVFormatContext *s, const char *host, int port,
* potential NAT router by sending dummy packets.
* RTP/RTCP dummy packets are used for RDT, too.
*/
if (!(rt->server_type == RTSP_SERVER_WMS && i > 1))
if (!(rt->server_type == RTSP_SERVER_WMS && i > 1) && s->iformat)
rtp_send_punch_packets(rtsp_st->rtp_handle);
break;
}

Loading…
Cancel
Save