From 72885d1c9195f61c72e61b375dd4385613e23c77 Mon Sep 17 00:00:00 2001 From: "stefan@webrtc.org" Date: Mon, 12 May 2014 22:09:27 +0000 Subject: [PATCH] Fixes log spam introduced with r6041. We shouldn't return an error if we don't yet have a valid estimate. BUG=crbug/371714 R=wu@webrtc.org Review URL: https://webrtc-codereview.appspot.com/15469006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6111 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/video_engine/vie_channel_manager.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/webrtc/video_engine/vie_channel_manager.cc b/webrtc/video_engine/vie_channel_manager.cc index bbb7f19b6..6f35c24f6 100644 --- a/webrtc/video_engine/vie_channel_manager.cc +++ b/webrtc/video_engine/vie_channel_manager.cc @@ -416,10 +416,7 @@ bool ViEChannelManager::GetEstimatedReceiveBandwidth( } std::vector ssrcs; if (!group->GetRemoteBitrateEstimator()->LatestEstimate( - &ssrcs, estimated_bandwidth)) { - return false; - } - if (ssrcs.empty()) { + &ssrcs, estimated_bandwidth) || ssrcs.empty()) { *estimated_bandwidth = 0; } return true;