mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
link: improve state changes
This commit is contained in:
parent
3d54d31fac
commit
fb0919b8b7
3 changed files with 20 additions and 8 deletions
|
|
@ -663,6 +663,10 @@ check_states (PinosLink *this,
|
|||
in_state = this->input->state;
|
||||
out_state = this->output->state;
|
||||
|
||||
if (in_state == PINOS_PORT_STATE_STREAMING &&
|
||||
out_state == PINOS_PORT_STATE_STREAMING)
|
||||
return SPA_RESULT_OK;
|
||||
|
||||
pinos_log_debug ("link %p: input state %d, output state %d", this, in_state, out_state);
|
||||
|
||||
if ((res = do_negotiate (this, in_state, out_state)) != SPA_RESULT_OK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue