Index: webrtc/pc/rtpreceiver.cc |
diff --git a/webrtc/pc/rtpreceiver.cc b/webrtc/pc/rtpreceiver.cc |
index c6a2128dfb314ed5a450d217c2fb61e0b350845d..99c4010101b0636c80843ebc9fbdfb6f669e10ab 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."; |