mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
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:
parent
dc5ed8f327
commit
c0b002689b
1 changed files with 4 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue