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

Unified Diff: webrtc/modules/rtp_rtcp/source/rtp_sender.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
Index: webrtc/modules/rtp_rtcp/source/rtp_sender.cc
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender.cc b/webrtc/modules/rtp_rtcp/source/rtp_sender.cc
index 024e028393057c54e2772945c8d49f0f17cb1aea..89e7735c7a4da9ae45dd42f0ed15ade497a28b79 100644
--- a/webrtc/modules/rtp_rtcp/source/rtp_sender.cc
+++ b/webrtc/modules/rtp_rtcp/source/rtp_sender.cc
@@ -288,9 +288,8 @@ void RTPSender::SetSendPayloadType(int8_t payload_type) {
}
void RTPSender::SetMaxRtpPacketSize(size_t max_packet_size) {
- // Sanity check.
- RTC_DCHECK(max_packet_size >= 100 && max_packet_size <= IP_PACKET_SIZE)
- << "Invalid max payload length: " << max_packet_size;
+ RTC_DCHECK_GE(max_packet_size, 100);
+ RTC_DCHECK_LE(max_packet_size, IP_PACKET_SIZE);
rtc::CritScope lock(&send_critsect_);
max_packet_size_ = max_packet_size;
}
« no previous file with comments | « webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc ('k') | webrtc/modules/video_coding/frame_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698