echo-cancel: send capture/source latency correctly

Input latency received on the source (output stream) should be
propagated on the input stream (capture).
This commit is contained in:
Wim Taymans 2025-06-30 15:48:20 +02:00
parent f93b3b23a3
commit 3ff0c270dd

View file

@ -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); params[0] = spa_latency_build(&b, SPA_PARAM_Latency, &latency);
if (latency.direction == SPA_DIRECTION_INPUT) if (latency.direction == SPA_DIRECTION_INPUT)
pw_stream_update_params(impl->source, params, 1);
else
pw_stream_update_params(impl->capture, params, 1); 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) static struct spa_pod* get_props_param(struct impl* impl, struct spa_pod_builder* b)