[vlc-devel] commit: rtp sout: fix socket leak (Pierre Ynard )
git version control
git at videolan.org
Wed Jan 27 18:55:25 CET 2010
vlc/vlc-1.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Jan 27 18:44:33 2010 +0100| [b3dcfec0f04e5dbd94695809e2b9d02f18754444] | committer: Pierre Ynard
rtp sout: fix socket leak
RTCP sockets of RTSP sessions are not closed when the input is stopped.
(cherry picked from commit 0a60c851ed9b94975be82050d94d1af42ff763d1)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.0.git/?a=commit;h=b3dcfec0f04e5dbd94695809e2b9d02f18754444
---
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 2e29e15..d338ab7 100644
--- a/modules/stream_out/rtsp.c
+++ b/modules/stream_out/rtsp.c
@@ -238,7 +238,7 @@ void RtspDelId( rtsp_stream_t *rtsp, rtsp_stream_id_t *id )
if( ses->trackv[j].id == id->sout_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