From 0a60c851ed9b94975be82050d94d1af42ff763d1 Mon Sep 17 00:00:00 2001 From: Pierre Ynard Date: Wed, 27 Jan 2010 18:44:33 +0100 Subject: [PATCH] rtp sout: fix socket leak RTCP sockets of RTSP sessions are not closed when the input is stopped. --- modules/stream_out/rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } } -- 2.39.2