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:
Wim Taymans 2024-11-14 15:56:57 +01:00
parent d32ab4d8ea
commit bb2d848bf6

View file

@ -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;