rtsp: punch holes again after pause
authorGilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Sun, 22 Feb 2015 06:59:55 +0000 (07:59 +0100)
committerMartin Storsjö <martin@martin.st>
Mon, 23 Feb 2015 14:55:56 +0000 (16:55 +0200)
commitcdcc370293a159c321e41af7f0eef141c62d698d
tree90e9ffd4f42f5521035aa75b9feada4a32cad9a3
parent061c489895d29049a88dc6118e4b639a273b31d6
rtsp: punch holes again after pause

When a client behind a NAT issues a pause command, and stay paused for a
long time, the router may stop the RTP/RTCP port redirection. Resend the
hole punching packets before each PLAY command to cause the router to
restart the port redirection in that case.

Move the existing code for sending the packets from the SETUP phase
to the PLAY phase.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtsp.c
libavformat/rtspdec.c