[vlc-devel] commit: rtp sout: fix socket leak (Pierre Ynard )

git version control git at videolan.org
Wed Jan 27 18:47:29 CET 2010


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Jan 27 18:44:33 2010 +0100| [0a60c851ed9b94975be82050d94d1af42ff763d1] | committer: Pierre Ynard 

rtp sout: fix socket leak

RTCP sockets of RTSP sessions are not closed when the input is stopped.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0a60c851ed9b94975be82050d94d1af42ff763d1
---

 modules/stream_out/rtsp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/stream_out/rtsp.c b/modules/stream_out/rtsp.c
index f70abe3..6341f4d 100644
--- a/modules/stream_out/rtsp.c
+++ b/modules/stream_out/rtsp.c
@@ -254,7 +254,7 @@ void RtspDelId( rtsp_stream_t *rtsp, rtsp_stream_id_t *id )
             if( ses->trackv[j].id == id )
             {
                 rtsp_strack_t *tr = ses->trackv + j;
-                net_Close( tr->fd );
+                rtp_del_sink( tr->id->sout_id, tr->fd );
                 REMOVE_ELEM( ses->trackv, ses->trackc, j );
             }
         }




More information about the vlc-devel mailing list