Changed default module condition for BW estimate.

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1832 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mflodman@webrtc.org 2012-03-05 11:59:55 +00:00
parent 9f6bd51582
commit fa6bc673b0

View File

@ -1663,9 +1663,10 @@ WebRtc_Word32 ModuleRtpRtcpImpl::SetREMBData(const WebRtc_UWord32 bitrate,
WebRtc_Word32 ModuleRtpRtcpImpl::SetMaximumBitrateEstimate(
const WebRtc_UWord32 bitrate) {
if(!_rtcpSender.REMB()) {
if (_defaultModule) {
WEBRTC_TRACE(kTraceError, kTraceRtpRtcp, _id,
"SetMaximumBitrateEstimate - REMB not enabled.");
"SetMaximumBitrateEstimate - Should be called on default "
"module.");
return -1;
}
OnReceivedEstimatedMaxBitrate(bitrate);