mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
netclock: Make the RTT average ignore large values more forcefully.
Smooth larger RTTs a little harder, so excessively large values perturb the average a bit less, and therefore get filtered out more strongly
This commit is contained in:
parent
9d2b2768e3
commit
824b821caa
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ gst_net_client_clock_observe_times (GstNetClientClock * self,
|
|||
else if (rtt < priv->rtt_avg) /* Shorter RTTs carry more weight than longer */
|
||||
priv->rtt_avg = (3 * priv->rtt_avg + rtt) / 4;
|
||||
else
|
||||
priv->rtt_avg = (7 * priv->rtt_avg + rtt) / 8;
|
||||
priv->rtt_avg = (15 * priv->rtt_avg + rtt) / 16;
|
||||
|
||||
if (rtt > 2 * priv->rtt_avg) {
|
||||
GST_LOG_OBJECT (self,
|
||||
|
|
Loading…
Reference in a new issue