Commit 9a1f8cbe authored by mstorsjo's avatar mstorsjo

RTSP: Set the connection handles to null after closing them

This fixes a potential issue when doing redirects.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23649 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0c04df0a
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment