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
This commit is contained in:
parent
17911dca80
commit
72885d1c91
@ -416,10 +416,7 @@ bool ViEChannelManager::GetEstimatedReceiveBandwidth(
|
|||||||
}
|
}
|
||||||
std::vector<unsigned int> ssrcs;
|
std::vector<unsigned int> ssrcs;
|
||||||
if (!group->GetRemoteBitrateEstimator()->LatestEstimate(
|
if (!group->GetRemoteBitrateEstimator()->LatestEstimate(
|
||||||
&ssrcs, estimated_bandwidth)) {
|
&ssrcs, estimated_bandwidth) || ssrcs.empty()) {
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (ssrcs.empty()) {
|
|
||||||
*estimated_bandwidth = 0;
|
*estimated_bandwidth = 0;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user