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

Unified Diff: webrtc/media/engine/internalencoderfactory.cc

Issue 2839883002: Use field_trial::IsEnabled for FlexFEC. (Closed)
Patch Set: Created 3 years, 8 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/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/engine/internalencoderfactory.cc
diff --git a/webrtc/media/engine/internalencoderfactory.cc b/webrtc/media/engine/internalencoderfactory.cc
index 544070fc4c3c7e8b35ea1b7c3086513c4fee1d74..a8d4f2d2c2c935282d0699cb0aeaabb441b54653 100644
--- a/webrtc/media/engine/internalencoderfactory.cc
+++ b/webrtc/media/engine/internalencoderfactory.cc
@@ -23,11 +23,12 @@ namespace {
// If this field trial is enabled, the "flexfec-03" codec will be advertised
// as being supported by the InternalEncoderFactory. This means that
-// "flexfec-03" will appear in the default local SDP, and we therefore need to
-// be ready to receive FlexFEC packets from the remote.
+// "flexfec-03" will appear in the default SDP offer, and we therefore need to
+// be ready to receive FlexFEC packets from the remote. It also means that
+// FlexFEC SSRCs will be generated by MediaSession and added as "a=ssrc:" and
+// "a=ssrc-group:" lines in the local SDP.
bool IsFlexfecAdvertisedFieldTrialEnabled() {
- return webrtc::field_trial::FindFullName("WebRTC-FlexFEC-03-Advertised") ==
- "Enabled";
+ return webrtc::field_trial::IsEnabled("WebRTC-FlexFEC-03-Advertised");
}
} // namespace
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698