Attempt to isolate a bug by adding a new CHECK

Review URL: https://codereview.webrtc.org/1426953005

Cr-Commit-Position: refs/heads/master@{#10520}
This commit is contained in:
kwiberg
2015-11-05 05:11:19 -08:00
committed by Commit bot
parent 2f48d94124
commit cd19faffa8

View File

@ -296,7 +296,9 @@ int GainControlImpl::Initialize() {
return err;
}
capture_levels_.assign(num_handles(), analog_capture_level_);
const int n = num_handles();
RTC_CHECK_GE(n, 0) << "Bad number of handles: " << n;
capture_levels_.assign(n, analog_capture_level_);
return apm_->kNoError;
}