mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
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:
parent
f93b3b23a3
commit
3ff0c270dd
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue