mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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.
This commit is contained in:
parent
20b715ac79
commit
0cda7294ab
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue