From cc7b649474e82d547c4f49b437182e5e647909c3 Mon Sep 17 00:00:00 2001 From: "stefan@webrtc.org" Date: Wed, 7 Dec 2011 13:22:06 +0000 Subject: [PATCH] Add trace for the situation when the min bitrate > available bandwidth. BUG= TEST= Review URL: http://webrtc-codereview.appspot.com/312001 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1123 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/modules/rtp_rtcp/source/bandwidth_management.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/rtp_rtcp/source/bandwidth_management.cc b/src/modules/rtp_rtcp/source/bandwidth_management.cc index 2efe8074f7..aa279e9688 100644 --- a/src/modules/rtp_rtcp/source/bandwidth_management.cc +++ b/src/modules/rtp_rtcp/source/bandwidth_management.cc @@ -291,6 +291,12 @@ WebRtc_UWord32 BandwidthManagement::ShapeSimple(WebRtc_Word32 packetLoss, } if (newBitRate < _minBitRateConfigured) { + WEBRTC_TRACE(kTraceWarning, + kTraceRtpRtcp, + _id, + "The configured min bitrate (%u kbps) is greater than the " + "estimated available bandwidth (%u kbps).\n", + _minBitRateConfigured / 1000, newBitRate / 1000); newBitRate = _minBitRateConfigured; } return newBitRate;