Mercurial > libavformat.hg
changeset 5679:4e5c3a9c1f6c libavformat
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>.
author | rbultje |
---|---|
date | Fri, 19 Feb 2010 23:13:21 +0000 |
parents | 76cb8ea11c47 |
children | 129679c03536 |
files | rtsp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rtsp.c Fri Feb 19 23:11:59 2010 +0000 +++ b/rtsp.c Fri Feb 19 23:13:21 2010 +0000 @@ -1177,7 +1177,7 @@ * 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; }