# HG changeset patch # User mstorsjo # Date 1276983999 0 # Node ID 9f9a4be98cfb9ff89fbd5f6646e5e487cd1e1293 # Parent 33fe8833a4390bbfbc5e44de12bf9ada600c21d7 RTSP: Set the connection handles to null after closing them This fixes a potential issue when doing redirects. diff -r 33fe8833a439 -r 9f9a4be98cfb rtsp.c --- a/rtsp.c Sat Jun 19 21:36:13 2010 +0000 +++ b/rtsp.c Sat Jun 19 21:46:39 2010 +0000 @@ -1483,6 +1483,7 @@ 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)