From 282028e7537b53b1155d5ede7083cf9ba5de18b2 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Thu, 12 Dec 2013 10:34:38 +0100 Subject: [PATCH] rtpsession: when we schedule BYE, only deal with BYE sources When we are doing the RTCP timeout to schedule BYE packets, don't generate RTCP for all sources but only for the sources marked as BYE. --- gst/rtpmanager/rtpsession.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c index 929c40412e..23769a99b8 100644 --- a/gst/rtpmanager/rtpsession.c +++ b/gst/rtpmanager/rtpsession.c @@ -3482,6 +3482,10 @@ generate_rtcp (const gchar * key, RTPSource * source, ReportData * data) if (!source->internal || source->sent_bye) return; + /* ignore other sources when we do the timeout after a scheduled BYE */ + if (sess->scheduled_bye && !source->marked_bye) + return; + data->source = source; /* open packet */