mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
small cleanups
This commit is contained in:
parent
3f45ccd6a5
commit
33427b4cd3
2 changed files with 4 additions and 15 deletions
|
|
@ -62,11 +62,10 @@ static inline int spa_graph_link_trigger(struct spa_graph_link *link)
|
|||
{
|
||||
struct spa_graph_state *state = link->state;
|
||||
|
||||
if (state->pending == 0) {
|
||||
spa_debug("link %p: state %p: nothing pending", link, state);
|
||||
} else {
|
||||
spa_debug("link %p: state %p: pending %d required %d", link, state,
|
||||
state->pending, state->required);
|
||||
spa_debug("link %p: state %p: pending %d required %d", link, state,
|
||||
state->pending, state->required);
|
||||
|
||||
if (state->pending != 0) {
|
||||
if (__atomic_sub_fetch(&state->pending, 1, __ATOMIC_SEQ_CST) == 0)
|
||||
spa_graph_link_signal(link);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue