Index: webrtc/pc/rtpreceiver.cc |
diff --git a/webrtc/pc/rtpreceiver.cc b/webrtc/pc/rtpreceiver.cc |
index f3eef5a9a9aadc7b645fd8649e02dd3a3fe1ff81..25c6eb06cbf32ef55a56e6e92f84ce4532bcbf4e 100644 |
--- a/webrtc/pc/rtpreceiver.cc |
+++ b/webrtc/pc/rtpreceiver.cc |
@@ -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."; |