pod: first compare, then advance to next item

This commit is contained in:
Wim Taymans 2017-11-14 16:49:07 +01:00
parent 0534571f7d
commit 49d8f6792e
2 changed files with 7 additions and 6 deletions

View file

@ -155,6 +155,7 @@ static int do_negotiate(struct pw_link *this, uint32_t in_state, uint32_t out_st
out_state = PW_PORT_STATE_CONFIGURE;
}
else {
pw_log_debug("link %p: format was already set", this);
pw_node_update_state(output->node, PW_NODE_STATE_RUNNING, NULL);
changed = false;
}
@ -175,6 +176,7 @@ static int do_negotiate(struct pw_link *this, uint32_t in_state, uint32_t out_st
in_state = PW_PORT_STATE_CONFIGURE;
}
else {
pw_log_debug("link %p: format was already set", this);
pw_node_update_state(input->node, PW_NODE_STATE_RUNNING, NULL);
changed = false;
}