From 354faabda02f84d68ae24fe3d96242e8a242f456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Wed, 8 Jun 2011 14:48:01 -0400 Subject: [PATCH] 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 --- gst/rtpmanager/rtpsession.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c index 541a3aebc4..1dcc0bdc13 100644 --- a/gst/rtpmanager/rtpsession.c +++ b/gst/rtpmanager/rtpsession.c @@ -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,