mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
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
This commit is contained in:
parent
00e4a1f4e2
commit
6217b6451a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user