diff options
author | Martin Storsjö <martin@martin.st> | 2010-06-19 21:46:39 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-06-19 21:46:39 +0000 |
commit | 6217b6451ad2e730d774d033ca7e77b59c3d66b3 (patch) | |
tree | 04f3b9085a4cc2eb68b92c1403aff48d72510025 /libavformat | |
parent | 00e4a1f4e29f645b1a5bcf334953100e406bbcc7 (diff) | |
download | ffmpeg-6217b6451ad2e730d774d033ca7e77b59c3d66b3.tar.gz |
RTSP: Set the connection handles to null after closing them
This fixes a potential issue when doing redirects.
Originally committed as revision 23649 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtsp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index d77485d9b1..fb203a6c39 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1483,6 +1483,7 @@ void ff_rtsp_close_connections(AVFormatContext *s) RTSPState *rt = s->priv_data; if (rt->rtsp_hd_out != rt->rtsp_hd) url_close(rt->rtsp_hd_out); url_close(rt->rtsp_hd); + rt->rtsp_hd = rt->rtsp_hd_out = NULL; } int ff_rtsp_connect(AVFormatContext *s) |