mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-12 13:30:15 -05:00
impl-node: don't remove from graph when creating
When we were in the CREATING state, don't remove ourselves from the graph because we were not added yet.
This commit is contained in:
parent
d32ab4d8ea
commit
bb2d848bf6
1 changed files with 2 additions and 1 deletions
|
|
@ -450,7 +450,8 @@ static void node_update_state(struct pw_impl_node *node, enum pw_node_state stat
|
||||||
case PW_NODE_STATE_SUSPENDED:
|
case PW_NODE_STATE_SUSPENDED:
|
||||||
case PW_NODE_STATE_ERROR:
|
case PW_NODE_STATE_ERROR:
|
||||||
if (state != PW_NODE_STATE_IDLE || node->pause_on_idle)
|
if (state != PW_NODE_STATE_IDLE || node->pause_on_idle)
|
||||||
remove_node_from_graph(node);
|
if (old != PW_NODE_STATE_CREATING)
|
||||||
|
remove_node_from_graph(node);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue