mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
rtpsession: Don't let the computed RTP bandwidth fall too low
If it falls too low, the computed RTCP bandwidth will be near zero and the RTCP thread will be stopped. https://bugzilla.gnome.org/show_bug.cgi?id=654583
This commit is contained in:
parent
4d48109f9d
commit
354faabda0
1 changed files with 1 additions and 1 deletions
|
@ -2444,7 +2444,7 @@ calculate_rtcp_interval (RTPSession * sess, gboolean deterministic,
|
||||||
g_hash_table_foreach (sess->cnames, (GHFunc) add_bitrates, &bandwidth);
|
g_hash_table_foreach (sess->cnames, (GHFunc) add_bitrates, &bandwidth);
|
||||||
bandwidth /= 8.0;
|
bandwidth /= 8.0;
|
||||||
}
|
}
|
||||||
if (bandwidth == 0)
|
if (bandwidth < 8000)
|
||||||
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