[FFmpeg-cvslog] r23649 - trunk/libavformat/rtsp.c
mstorsjo
subversion
Sat Jun 19 23:46:40 CEST 2010
Author: mstorsjo
Date: Sat Jun 19 23:46:39 2010
New Revision: 23649
Log:
RTSP: Set the connection handles to null after closing them
This fixes a potential issue when doing redirects.
Modified:
trunk/libavformat/rtsp.c
Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c Sat Jun 19 23:36:13 2010 (r23648)
+++ trunk/libavformat/rtsp.c Sat Jun 19 23:46:39 2010 (r23649)
@@ -1483,6 +1483,7 @@ void ff_rtsp_close_connections(AVFormatC
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)
More information about the ffmpeg-cvslog
mailing list