From 64aae9d55133ad0b294ea420d0096ab5afbb59f9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 21 Apr 2023 18:23:53 +0200 Subject: [PATCH] module-echo-cancel: set rec/source/play_info fields correctly In the fallback case we need to set them all to the same format as the playback. --- src/modules/module-echo-cancel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/module-echo-cancel.c b/src/modules/module-echo-cancel.c index 82e779676..bdebd2d49 100644 --- a/src/modules/module-echo-cancel.c +++ b/src/modules/module-echo-cancel.c @@ -1429,9 +1429,9 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args) res = spa_audio_aec_init(impl->aec, &aec_props->dict, &info); - impl->rec_info.channels = info.channels; - impl->out_info.channels = info.channels; - impl->play_info.channels = info.channels; + impl->rec_info = info; + impl->out_info = info; + impl->play_info = info; } pw_properties_free(aec_props);