From 85d4c031d456b21b9e9e8c79f373d1161d45013d Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Thu, 26 Dec 2013 17:29:42 +0200 Subject: [PATCH] rtpsession: cleanup sources that have sent BYE --- gst/rtpmanager/rtpsession.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c index 9dc1525..1e37406 100644 --- a/gst/rtpmanager/rtpsession.c +++ b/gst/rtpmanager/rtpsession.c @@ -3258,6 +3258,11 @@ session_cleanup (const gchar * key, RTPSource * source, ReportData * data) } } + if (source->internal && source->sent_bye) { + GST_DEBUG ("removing internal source that has sent BYE %08x", source->ssrc); + remove = TRUE; + } + /* sources that were inactive for more than 5 times the deterministic reporting * interval get timed out. the min timeout is 5 seconds. */ /* mind old time that might pre-date last time going to PLAYING */ -- 2.7.4