From 3ff0c270ddc749933eabf7b06653e1a015dcc607 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 30 Jun 2025 15:48:20 +0200 Subject: [PATCH] echo-cancel: send capture/source latency correctly Input latency received on the source (output stream) should be propagated on the input stream (capture). --- src/modules/module-echo-cancel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/module-echo-cancel.c b/src/modules/module-echo-cancel.c index 4f08927ac..2ff10ed95 100644 --- a/src/modules/module-echo-cancel.c +++ b/src/modules/module-echo-cancel.c @@ -624,9 +624,9 @@ static void input_param_latency_changed(struct impl *impl, const struct spa_pod params[0] = spa_latency_build(&b, SPA_PARAM_Latency, &latency); if (latency.direction == SPA_DIRECTION_INPUT) - pw_stream_update_params(impl->source, params, 1); - else pw_stream_update_params(impl->capture, params, 1); + else + pw_stream_update_params(impl->source, params, 1); } static struct spa_pod* get_props_param(struct impl* impl, struct spa_pod_builder* b)