OSDN Git Service

avformat/rtsp: punch holes again after pause
authorGilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Sun, 22 Feb 2015 06:59:55 +0000 (07:59 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Feb 2015 13:09:26 +0000 (14:09 +0100)
commit22bb5bd7a3b55c25bfef130ad89e8574dd47af1d
treebf38a834fe8db8bab69f7012b57e34c9766e7a71
parent642c49c983df2f56b656ce668f2a0257a1939578
avformat/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 after each PLAY command to cause the router to
restart the port redirection in that case.

Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rtspdec.c