提交 6217b645 编写于 作者: M Martin Storsjö

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
上级 00e4a1f4
...@@ -1483,6 +1483,7 @@ void ff_rtsp_close_connections(AVFormatContext *s) ...@@ -1483,6 +1483,7 @@ void ff_rtsp_close_connections(AVFormatContext *s)
RTSPState *rt = s->priv_data; RTSPState *rt = s->priv_data;
if (rt->rtsp_hd_out != rt->rtsp_hd) url_close(rt->rtsp_hd_out); if (rt->rtsp_hd_out != rt->rtsp_hd) url_close(rt->rtsp_hd_out);
url_close(rt->rtsp_hd); url_close(rt->rtsp_hd);
rt->rtsp_hd = rt->rtsp_hd_out = NULL;
} }
int ff_rtsp_connect(AVFormatContext *s) int ff_rtsp_connect(AVFormatContext *s)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册