Return bw_estimate / num-streams from the multi-stream estimator for now until updating ViE APIs.

BUG=

Review URL: https://webrtc-codereview.appspot.com/842006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2874 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org 2012-10-05 08:15:37 +00:00
parent 6679dcc6c5
commit b0a8a3bfdd

View File

@ -145,7 +145,13 @@ bool RemoteBitrateEstimatorMultiStream::LatestEstimate(
if (!remote_rate_.ValidEstimate()) {
return false;
}
*bitrate_bps = remote_rate_.LatestEstimate();
// TODO(holmer): For now we're returning the estimate bandwidth per stream as
// it corresponds better to how the ViE API is designed. Will fix this when
// the API changes.
if (streams_.size() > 0)
*bitrate_bps = remote_rate_.LatestEstimate() / streams_.size();
else
*bitrate_bps = 0;
return true;
}