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 committed by Arun Raghavan
parent 83a155d0c0
commit 5eba752b95

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);
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)