Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Unified Diff: webrtc/pc/rtpsender.cc

Issue 2988153003: Replace CHECK(x && y) with two separate CHECK() calls (Closed)
Patch Set: fix mistakes Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/pc/rtpreceiver.cc ('k') | webrtc/pc/test/fakedatachannelprovider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/rtpsender.cc
diff --git a/webrtc/pc/rtpsender.cc b/webrtc/pc/rtpsender.cc
index a16a28c193e2bca2825bd1fa9c94ba2933bd035a..9d920e6f080a029c404c671a2451af6db1f438a2 100644
--- a/webrtc/pc/rtpsender.cc
+++ b/webrtc/pc/rtpsender.cc
@@ -243,7 +243,8 @@ void AudioRtpSender::Stop() {
}
void AudioRtpSender::SetAudioSend() {
- RTC_DCHECK(!stopped_ && can_send_track());
+ RTC_DCHECK(!stopped_);
+ RTC_DCHECK(can_send_track());
if (!channel_) {
LOG(LS_ERROR) << "SetAudioSend: No audio channel exists.";
return;
@@ -430,7 +431,8 @@ void VideoRtpSender::Stop() {
}
void VideoRtpSender::SetVideoSend() {
- RTC_DCHECK(!stopped_ && can_send_track());
+ RTC_DCHECK(!stopped_);
+ RTC_DCHECK(can_send_track());
if (!channel_) {
LOG(LS_ERROR) << "SetVideoSend: No video channel exists.";
return;
« no previous file with comments | « webrtc/pc/rtpreceiver.cc ('k') | webrtc/pc/test/fakedatachannelprovider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698