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,14 +850,16 @@ static void input_port_latency_changed(void *data)
{
struct impl *impl = data;
struct pw_impl_link *this = &impl->this;
pw_impl_port_recalc_latency(this->output);
if (!this->feedback)
pw_impl_port_recalc_latency(this->output);
}
static void output_port_latency_changed(void *data)
{
struct impl *impl = data;
struct pw_impl_link *this = &impl->this;
pw_impl_port_recalc_latency(this->input);
if (!this->feedback)
pw_impl_port_recalc_latency(this->input);
}
static const struct pw_impl_port_events input_port_events = {