mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue