rtpsession: Don't let the computed RTP bandwidth fall too low
authorOlivier CrĂȘte <olivier.crete@collabora.com>
Wed, 8 Jun 2011 18:48:01 +0000 (14:48 -0400)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 25 Jul 2011 14:19:00 +0000 (16:19 +0200)
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

gst/rtpmanager/rtpsession.c

index 541a3ae..1dcc0bd 100644 (file)
@@ -2444,7 +2444,7 @@ calculate_rtcp_interval (RTPSession * sess, gboolean deterministic,
       g_hash_table_foreach (sess->cnames, (GHFunc) add_bitrates, &bandwidth);
       bandwidth /= 8.0;
     }
-    if (bandwidth == 0)
+    if (bandwidth < 8000)
       bandwidth = RTP_STATS_BANDWIDTH;
 
     rtp_stats_set_bandwidths (&sess->stats, bandwidth,