Remove log message if balanced/cpu speed field trial is not set.

Bug: none
Change-Id: I4eb08517cacdb180085a4a5dd8649470b62f4600
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/208286
Reviewed-by: Rasmus Brandt <brandtr@webrtc.org>
Commit-Queue: Åsa Persson <asapersson@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33301}
This commit is contained in:
Åsa Persson 2021-02-19 10:50:49 +01:00 committed by Commit Bot
parent 16359f65c4
commit ae096ef7a6
2 changed files with 2 additions and 2 deletions

View file

@ -93,6 +93,7 @@ bool IsValid(const BalancedDegradationSettings::CodecTypeSpecific& config1,
bool IsValid(const std::vector<BalancedDegradationSettings::Config>& configs) {
if (configs.size() <= 1) {
if (configs.size() == 1)
RTC_LOG(LS_WARNING) << "Unsupported size, value ignored.";
return false;
}

View file

@ -25,7 +25,6 @@ constexpr int kMaxSetting = -1;
std::vector<CpuSpeedExperiment::Config> GetValidOrEmpty(
const std::vector<CpuSpeedExperiment::Config>& configs) {
if (configs.empty()) {
RTC_LOG(LS_WARNING) << "Unsupported size, value ignored.";
return {};
}