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}
This commit is contained in:
committed by
Commit Bot
parent
e8cbf30231
commit
5a000165d2
@ -280,7 +280,7 @@ void SendSideBandwidthEstimation::SetBitrates(
|
||||
|
||||
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()) {
|
||||
|
||||
Reference in New Issue
Block a user