mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
node: only put async state changes to work queue
This commit is contained in:
parent
c9855763c3
commit
80ba0b2dcf
2 changed files with 5 additions and 4 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 35bf6bfa5c3969b65e63dbfe48578c5c040849d4
|
||||
Subproject commit ad086e33498cbde349bb9452807f7b561b473d41
|
||||
|
|
@ -1774,11 +1774,12 @@ int pw_node_set_state(struct pw_node *node, enum pw_node_state state)
|
|||
|
||||
if (SPA_RESULT_IS_ASYNC(res)) {
|
||||
res = spa_node_sync(node->node, res);
|
||||
pw_work_queue_add(impl->work,
|
||||
node, res, on_state_complete, SPA_INT_TO_PTR(state));
|
||||
} else {
|
||||
on_state_complete(node, SPA_INT_TO_PTR(state), res, 0);
|
||||
}
|
||||
|
||||
pw_work_queue_add(impl->work,
|
||||
node, res, on_state_complete, SPA_INT_TO_PTR(state));
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue