Commit 0a60c851 authored by Pierre Ynard's avatar Pierre Ynard

rtp sout: fix socket leak

RTCP sockets of RTSP sessions are not closed when the input is stopped.
parent f43ecf81
......@@ -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 );
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment