Index: webrtc/media/engine/webrtcvoiceengine.cc |
diff --git a/webrtc/media/engine/webrtcvoiceengine.cc b/webrtc/media/engine/webrtcvoiceengine.cc |
index 1f88cb7245568a1da6a5c1e52aaf751945232e92..96f9ed70d403c6c464cc9b015f83190630a0b331 100644 |
--- a/webrtc/media/engine/webrtcvoiceengine.cc |
+++ b/webrtc/media/engine/webrtcvoiceengine.cc |
@@ -825,14 +825,6 @@ bool WebRtcVoiceEngine::ApplyOptions(const AudioOptions& options_in) { |
} |
} |
- if (options.highpass_filter) { |
- LOG(LS_INFO) << "High pass filter enabled? " << *options.highpass_filter; |
- if (voep->EnableHighPassFilter(*options.highpass_filter) == -1) { |
- LOG_RTCERR1(SetHighpassFilterStatus, *options.highpass_filter); |
- return false; |
- } |
- } |
- |
if (options.stereo_swapping) { |
LOG(LS_INFO) << "Stereo swapping enabled? " << *options.stereo_swapping; |
voep->EnableStereoChannelSwapping(*options.stereo_swapping); |
@@ -920,6 +912,10 @@ bool WebRtcVoiceEngine::ApplyOptions(const AudioOptions& options_in) { |
} |
} |
+ if (options.highpass_filter) { |
+ apm_config_.high_pass_filter.enabled = *options.highpass_filter; |
+ } |
+ |
apm()->SetExtraOptions(config); |
apm()->ApplyConfig(apm_config_); |