Don't use result of "field_trial::FindFullName" as string reference.
"field_trial::FindFullName" can return "std::string()" which should not be referenced by the caller. Review URL: https://codereview.webrtc.org/1238943003 Cr-Commit-Position: refs/heads/master@{#9594}
This commit is contained in:
parent
a9b4c32052
commit
bd38428089
@ -265,7 +265,7 @@ bool WebRtcVideoCapturer::SetApplyRotation(bool enable) {
|
||||
// calls, can't take lock.
|
||||
DCHECK(module_);
|
||||
|
||||
const std::string& group_name =
|
||||
const std::string group_name =
|
||||
webrtc::field_trial::FindFullName("WebRTC-CVO");
|
||||
|
||||
if (group_name == "Disabled") {
|
||||
|
||||
@ -154,7 +154,7 @@ bool CodecIsInternallySupported(const std::string& codec_name) {
|
||||
return true;
|
||||
}
|
||||
if (CodecNamesEq(codec_name, kVp9CodecName)) {
|
||||
const std::string& group_name =
|
||||
const std::string group_name =
|
||||
webrtc::field_trial::FindFullName("WebRTC-SupportVP9");
|
||||
return group_name == "Enabled" || group_name == "EnabledByFlag";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user