mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
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:
parent
3981f15ec6
commit
a9e14a30da
1 changed files with 1 additions and 1 deletions
|
|
@ -368,7 +368,7 @@ static int suspend_node(struct pw_impl_node *this)
|
||||||
pw_log_debug(NAME" %p: suspend node state:%s", this,
|
pw_log_debug(NAME" %p: suspend node state:%s", this,
|
||||||
pw_node_state_as_string(this->info.state));
|
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;
|
return 0;
|
||||||
|
|
||||||
pause_node(this);
|
pause_node(this);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue