[SCM] libav/experimental: RTSP: Set the connection handles to null after closing them

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:08:48 UTC 2013


The following commit has been merged in the experimental branch:
commit 6217b6451ad2e730d774d033ca7e77b59c3d66b3
Author: Martin Storsjö <martin at martin.st>
Date:   Sat Jun 19 21:46:39 2010 +0000

    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

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index d77485d..fb203a6 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -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)

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list