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.
This commit is contained in:
George Kiagiadakis 2013-12-12 10:34:38 +01:00 committed by Wim Taymans
parent 6a421c3d81
commit 282028e753

View file

@ -3482,6 +3482,10 @@ generate_rtcp (const gchar * key, RTPSource * source, ReportData * data)
if (!source->internal || source->sent_bye) if (!source->internal || source->sent_bye)
return; return;
/* ignore other sources when we do the timeout after a scheduled BYE */
if (sess->scheduled_bye && !source->marked_bye)
return;
data->source = source; data->source = source;
/* open packet */ /* open packet */