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:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user