Test field trial group with startswith rather than equals.
BUG=webrtc:7266 Review-Url: https://codereview.webrtc.org/2717973005 Cr-Commit-Position: refs/heads/master@{#16915}
This commit is contained in:
@ -1298,11 +1298,11 @@ webrtc::VideoEncoder* MediaCodecVideoEncoderFactory::CreateVideoEncoder(
|
||||
|
||||
const std::vector<cricket::VideoCodec>&
|
||||
MediaCodecVideoEncoderFactory::supported_codecs() const {
|
||||
if (webrtc::field_trial::FindFullName(kH264HighProfileFieldTrial) ==
|
||||
"Enabled")
|
||||
if (webrtc::field_trial::IsEnabled(kH264HighProfileFieldTrial)) {
|
||||
return supported_codecs_with_h264_hp_;
|
||||
else
|
||||
} else {
|
||||
return supported_codecs_;
|
||||
}
|
||||
}
|
||||
|
||||
void MediaCodecVideoEncoderFactory::DestroyVideoEncoder(
|
||||
|
||||
@ -22,7 +22,7 @@ namespace {
|
||||
const char kHighProfileExperiment[] = "WebRTC-H264HighProfile";
|
||||
|
||||
bool IsHighProfileEnabled() {
|
||||
return field_trial::FindFullName(kHighProfileExperiment) == "Enabled";
|
||||
return field_trial::IsEnabled(kHighProfileExperiment);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user