mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-06 16:09:43 +00:00
impl-node: only become driving when we are a driver
We don't just need to check the clock and position clock id, we also need to be able to become a driver before we can be driving.
This commit is contained in:
parent
39ca1bb9ed
commit
a683049986
|
@ -741,9 +741,13 @@ int pw_impl_node_set_io(struct pw_impl_node *this, uint32_t id, void *data, size
|
|||
this->rt.target.id = this->info.id;
|
||||
break;
|
||||
}
|
||||
this->driving = this->rt.clock && this->rt.position &&
|
||||
this->driving = this->driver && this->rt.clock && this->rt.position &&
|
||||
this->rt.position->clock.id == this->rt.clock->id;
|
||||
|
||||
pw_log_debug("%p: driving:%d %d %d", this, this->driving,
|
||||
this->rt.clock ? this->rt.clock->id : SPA_ID_INVALID,
|
||||
this->rt.position ? this->rt.position->clock.id : SPA_ID_INVALID);
|
||||
|
||||
spa_list_for_each(port, &this->input_ports, link)
|
||||
spa_node_set_io(port->mix, id, data, size);
|
||||
spa_list_for_each(port, &this->output_ports, link)
|
||||
|
|
Loading…
Reference in a new issue