diff options
author | stefan@webrtc.org <stefan@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-05-12 22:09:27 +0000 |
---|---|---|
committer | stefan@webrtc.org <stefan@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2014-05-12 22:09:27 +0000 |
commit | b50d67136ab764973893e9daa1c4b49ceebd5df8 (patch) | |
tree | 4745312f1026586d4c93b9c52f0700499c487411 /video_engine/vie_channel_manager.cc | |
parent | 04e6703292802f1f2dffe5f1486fd4a78b0abc5f (diff) | |
download | webrtc-b50d67136ab764973893e9daa1c4b49ceebd5df8.tar.gz |
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/webrtc@6111 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'video_engine/vie_channel_manager.cc')
-rw-r--r-- | video_engine/vie_channel_manager.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/video_engine/vie_channel_manager.cc b/video_engine/vie_channel_manager.cc index bbb7f19b..6f35c24f 100644 --- a/video_engine/vie_channel_manager.cc +++ b/video_engine/vie_channel_manager.cc @@ -416,10 +416,7 @@ bool ViEChannelManager::GetEstimatedReceiveBandwidth( } std::vector<unsigned int> ssrcs; if (!group->GetRemoteBitrateEstimator()->LatestEstimate( - &ssrcs, estimated_bandwidth)) { - return false; - } - if (ssrcs.empty()) { + &ssrcs, estimated_bandwidth) || ssrcs.empty()) { *estimated_bandwidth = 0; } return true; |