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:
Olivier Crête 2011-06-08 14:48:01 -04:00 committed by Mark Nauwelaerts
parent 4d48109f9d
commit 354faabda0

View file

@ -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,