From: Pierre Ynard Date: Wed, 27 Jan 2010 17:44:33 +0000 (+0100) Subject: rtp sout: fix socket leak X-Git-Tag: 1.1.0-ff~818 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0a60c851ed9b94975be82050d94d1af42ff763d1;p=vlc rtp sout: fix socket leak RTCP sockets of RTSP sessions are not closed when the input is stopped. --- diff --git a/modules/stream_out/rtsp.c b/modules/stream_out/rtsp.c index f70abe34c4..6341f4d3d2 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 ); } }