Index: webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc |
diff --git a/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc b/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc |
index f2b0f5b460f1671ad5614417e2accdda9d522818..6252364cd5e3e2dae6a289fff69232b98ce35552 100644 |
--- a/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc |
+++ b/webrtc/modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.cc |
@@ -14,13 +14,11 @@ |
#include <utility> |
#include "webrtc/base/checks.h" |
+#include "webrtc/system_wrappers/include/field_trial.h" |
namespace webrtc { |
namespace { |
-// TODO(elad.alon): Subsequent CL experiments with PLR source. |
-constexpr bool kUseTwccPlrForAna = false; |
- |
class NullSmoothingFilter final : public SmoothingFilter { |
public: |
void AddSample(float sample) override { |
@@ -85,7 +83,7 @@ FecControllerPlrBased::FecControllerPlrBased( |
FecControllerPlrBased::FecControllerPlrBased(const Config& config) |
: FecControllerPlrBased( |
config, |
- kUseTwccPlrForAna |
+ webrtc::field_trial::FindFullName("UseTwccPlrForAna") == "Enabled" |
? std::unique_ptr<NullSmoothingFilter>(new NullSmoothingFilter()) |
: std::unique_ptr<SmoothingFilter>( |
new SmoothingFilterImpl(config.time_constant_ms, |