Merge branch 'aec-agc-minor-fix' into 'master'

spa: aec: Fix a spurious warning while parsing args

See merge request pipewire/pipewire!2847
This commit is contained in:
Arun Raghavan 2026-06-03 16:46:59 +00:00
commit 6c2c3c5b27

View file

@ -213,8 +213,8 @@ static int webrtc_init2(void *object, const struct spa_dict *args,
agc1_mode = webrtc::AudioProcessing::Config::GainController1::Mode::kFixedDigital;
else if (spa_streq(str, "adaptive-analog"))
spa_log_warn(impl->log, "Adaptive analog mode is not implemented");
else
spa_log_warn(impl->log, "Unknown AGC2 mode '%s'", str);
else if (str != NULL)
spa_log_warn(impl->log, "Unknown AGC1 mode '%s'", str);
config.gain_controller1.enabled = gain_control1;
config.gain_controller1.mode = agc1_mode;