impl-link: don't recalc latency on feedback links

Or else we might keep updating the latency in a loop.
This commit is contained in:
Wim Taymans 2021-07-05 16:00:27 +02:00
parent dc5ed8f327
commit c0b002689b

View file

@ -850,6 +850,7 @@ static void input_port_latency_changed(void *data)
{
struct impl *impl = data;
struct pw_impl_link *this = &impl->this;
if (!this->feedback)
pw_impl_port_recalc_latency(this->output);
}
@ -857,6 +858,7 @@ static void output_port_latency_changed(void *data)
{
struct impl *impl = data;
struct pw_impl_link *this = &impl->this;
if (!this->feedback)
pw_impl_port_recalc_latency(this->input);
}