rtpsession: when we schedule BYE, only deal with BYE sources
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Thu, 12 Dec 2013 09:34:38 +0000 (10:34 +0100)
committerWim Taymans <wtaymans@redhat.com>
Thu, 12 Dec 2013 09:34:38 +0000 (10:34 +0100)
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

index 929c404..23769a9 100644 (file)
@@ -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 */