diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-01-23 12:13:00 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-01-23 12:18:45 +0100 |
commit | 0cda7294abdbd49ccde526bfa5efbe66bd109740 (patch) | |
tree | d50f60efaf48607f7f96ff44b74335f165d9f4bc /gst | |
parent | 20b715ac7970681bd38ce26c4b8f0a076229a88c (diff) | |
download | gst-plugins-bad-0cda7294abdbd49ccde526bfa5efbe66bd109740.tar.gz gst-plugins-bad-0cda7294abdbd49ccde526bfa5efbe66bd109740.tar.bz2 gst-plugins-bad-0cda7294abdbd49ccde526bfa5efbe66bd109740.zip |
Send BYE packets immediatly for small sessions
When the number of participants is less than 50, the RFC allows for sending the
BYE packet immediatly instead of using the regular BYE timeout.
Fixes #567828.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/rtpmanager/rtpstats.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/rtpmanager/rtpstats.c b/gst/rtpmanager/rtpstats.c index 517018d1..640c3194 100644 --- a/gst/rtpmanager/rtpstats.c +++ b/gst/rtpmanager/rtpstats.c @@ -145,6 +145,10 @@ rtp_stats_calculate_bye_interval (RTPSessionStats * stats) gdouble interval; gdouble rtcp_min_time; + /* no interval when we have less than 50 members */ + if (stats->active_sources < 50) + return 0; + rtcp_min_time = (stats->min_interval) / 2.0; /* Dedicate a fraction of the RTCP bandwidth to senders unless |