link: improve state changes

This commit is contained in:
Wim Taymans 2017-05-02 12:02:27 +02:00
parent 3d54d31fac
commit fb0919b8b7
3 changed files with 20 additions and 8 deletions

View file

@ -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)