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

Unified Diff: webrtc/call/call.cc

Issue 2243823002: Added ProbeBitrate(bitrate_bps, num_probes) to BitrateProber. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Clean up api Created 4 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 | « no previous file | webrtc/modules/pacing/bitrate_prober.h » ('j') | webrtc/modules/pacing/bitrate_prober.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call/call.cc
diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc
index f6354ade28e89e17037e9b03a3750058efc4b3fc..02cfc0c08046172129ea8feda33133037cb60b7f 100644
--- a/webrtc/call/call.cc
+++ b/webrtc/call/call.cc
@@ -593,8 +593,8 @@ void Call::SetBitrateConfig(
TRACE_EVENT0("webrtc", "Call::SetBitrateConfig");
RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread());
RTC_DCHECK_GE(bitrate_config.min_bitrate_bps, 0);
- if (bitrate_config.max_bitrate_bps != -1)
- RTC_DCHECK_GT(bitrate_config.max_bitrate_bps, 0);
+ if (bitrate_config.max_bitrate_bps < -1)
+ return;
stefan-webrtc 2016/08/12 13:19:58 Is there a reason not to DCHECK?
philipel 2016/08/12 14:08:06 Thought this might be user input, but i haven't lo
if (config_.bitrate_config.min_bitrate_bps ==
bitrate_config.min_bitrate_bps &&
(bitrate_config.start_bitrate_bps <= 0 ||
« no previous file with comments | « no previous file | webrtc/modules/pacing/bitrate_prober.h » ('j') | webrtc/modules/pacing/bitrate_prober.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698