From 6217b6451ad2e730d774d033ca7e77b59c3d66b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sat, 19 Jun 2010 21:46:39 +0000 Subject: [PATCH] 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 --- libavformat/rtsp.c | 1 + 1 file changed, 1 insertion(+) 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)