Replace CHECK(x && y) with two separate CHECK() calls

That way, the debug printout will tell us which of x and y that was false.

BUG=none

Review-Url: https://codereview.webrtc.org/2988153003
Cr-Commit-Position: refs/heads/master@{#19297}
This commit is contained in:
kwiberg
2017-08-09 17:22:01 -07:00
committed by Commit Bot
parent 608e94a03f
commit ee89e7870c
29 changed files with 86 additions and 51 deletions

View File

@ -53,7 +53,8 @@ void AudioRtpReceiver::OnChanged() {
}
void AudioRtpReceiver::OnSetVolume(double volume) {
RTC_DCHECK(volume >= 0 && volume <= 10);
RTC_DCHECK_GE(volume, 0);
RTC_DCHECK_LE(volume, 10);
cached_volume_ = volume;
if (!channel_) {
LOG(LS_ERROR) << "AudioRtpReceiver::OnSetVolume: No audio channel exists.";