graph: make pending/required fields signed

So that we can check for negative value.
Also don't signal incomplete graph when we signaled more than
expected, this can happen when we add new nodes in the current
cycle and then triggered the driver.
This commit is contained in:
Wim Taymans 2020-01-31 13:36:44 +01:00
parent 5e5bab4680
commit 43257e8676
3 changed files with 12 additions and 12 deletions

View file

@ -46,8 +46,8 @@ struct spa_graph_port;
struct spa_graph_state {
int status; /**< current status */
uint32_t required; /**< required number of signals */
uint32_t pending; /**< number of pending signals */
int32_t required; /**< required number of signals */
int32_t pending; /**< number of pending signals */
};
static inline void spa_graph_state_reset(struct spa_graph_state *state)