mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-19 16:01:45 +00:00
impl-link: check port state before allocating
At least one port needs to be ready to do allocation.
This commit is contained in:
parent
f9a45a8b84
commit
c4d5c01429
|
@ -486,6 +486,9 @@ static int do_allocation(struct pw_impl_link *this)
|
|||
|
||||
pw_log_debug("%p: out-state:%d in-state:%d", this, output->state, input->state);
|
||||
|
||||
if (input->state != PW_IMPL_PORT_STATE_READY && output->state != PW_IMPL_PORT_STATE_READY)
|
||||
return 0;
|
||||
|
||||
link_update_state(this, PW_LINK_STATE_ALLOCATING, 0, NULL);
|
||||
|
||||
out_flags = output->spa_flags;
|
||||
|
|
Loading…
Reference in a new issue