mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
rtpsession: Bandwidth is supposed to be in bits/s, not bytes/s
https://bugzilla.gnome.org/show_bug.cgi?id=747863
This commit is contained in:
parent
91c8688ed7
commit
928cd110bc
1 changed files with 1 additions and 2 deletions
|
@ -2801,9 +2801,8 @@ calculate_rtcp_interval (RTPSession * sess, gboolean deterministic,
|
||||||
|
|
||||||
g_hash_table_foreach (sess->ssrcs[sess->mask_idx],
|
g_hash_table_foreach (sess->ssrcs[sess->mask_idx],
|
||||||
(GHFunc) add_bitrates, &bandwidth);
|
(GHFunc) add_bitrates, &bandwidth);
|
||||||
bandwidth /= 8.0;
|
|
||||||
}
|
}
|
||||||
if (bandwidth < 8000)
|
if (bandwidth < RTP_STATS_BANDWIDTH)
|
||||||
bandwidth = RTP_STATS_BANDWIDTH;
|
bandwidth = RTP_STATS_BANDWIDTH;
|
||||||
|
|
||||||
rtp_stats_set_bandwidths (&sess->stats, bandwidth,
|
rtp_stats_set_bandwidths (&sess->stats, bandwidth,
|
||||||
|
|
Loading…
Reference in a new issue