Mercurial > libavformat.hg
changeset 6146:9f9a4be98cfb libavformat
RTSP: Set the connection handles to null after closing them
This fixes a potential issue when doing redirects.
author | mstorsjo |
---|---|
date | Sat, 19 Jun 2010 21:46:39 +0000 |
parents | 33fe8833a439 |
children | 3877522243ec |
files | rtsp.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)