impl-node: allow suspend on error nodes

When a node is in the error state, make sure we can execute a
Suspend on it to bring it back into a usable state.
This commit is contained in:
Wim Taymans 2021-03-23 17:21:45 +01:00
parent 3981f15ec6
commit a9e14a30da

View file

@ -368,7 +368,7 @@ static int suspend_node(struct pw_impl_node *this)
pw_log_debug(NAME" %p: suspend node state:%s", this,
pw_node_state_as_string(this->info.state));
if (this->info.state <= PW_NODE_STATE_SUSPENDED)
if (this->info.state > 0 && this->info.state <= PW_NODE_STATE_SUSPENDED)
return 0;
pause_node(this);