commit | 5a000165d2646d4ce6a0dc236e55b8dc33a90d61 | [log] [tgz] |
---|---|---|
author | Sebastian Jansson <srte@webrtc.org> | Fri Apr 12 11:21:32 2019 +0200 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Apr 12 13:01:03 2019 +0000 |
tree | f5756da45019039fe7f1ca35e49ce678d883a9d4 | |
parent | e8cbf30231e9ecf097360857dc425bf19856e12c [diff] [blame] |
Cleanup: Using DCHECK comparison macros for unit types. This provides nicer error messages. Bug: webrtc:9883 Change-Id: I7664c12f34bec2ba46a4057b1f45958daf3944b8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/132707 Reviewed-by: Åsa Persson <asapersson@webrtc.org> Commit-Queue: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27590}
diff --git a/modules/bitrate_controller/send_side_bandwidth_estimation.cc b/modules/bitrate_controller/send_side_bandwidth_estimation.cc index 5802801..86ee24a 100644 --- a/modules/bitrate_controller/send_side_bandwidth_estimation.cc +++ b/modules/bitrate_controller/send_side_bandwidth_estimation.cc
@@ -280,7 +280,7 @@ void SendSideBandwidthEstimation::SetSendBitrate(DataRate bitrate, Timestamp at_time) { - RTC_DCHECK(bitrate > DataRate::Zero()); + RTC_DCHECK_GT(bitrate, DataRate::Zero()); // Reset to avoid being capped by the estimate. delay_based_bitrate_ = DataRate::Zero(); if (loss_based_bandwidth_estimation_.Enabled()) {