mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
impl-node: always deactivate node in suspend
pause_node() will check the IDLE state of the node and will not deactivate the node when suspending when it was already IDLE. Fixes an issue where node.pause-on-idle=false filters would not want to resume after a suspend.
This commit is contained in:
parent
e77a0e8dc4
commit
d8540cc596
1 changed files with 1 additions and 1 deletions
|
|
@ -400,7 +400,7 @@ static int suspend_node(struct pw_impl_node *this)
|
||||||
if (this->info.state > 0 && 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);
|
node_deactivate(this);
|
||||||
|
|
||||||
spa_list_for_each(p, &this->input_ports, link) {
|
spa_list_for_each(p, &this->input_ports, link) {
|
||||||
if ((res = pw_impl_port_set_param(p, SPA_PARAM_Format, 0, NULL)) < 0)
|
if ((res = pw_impl_port_set_param(p, SPA_PARAM_Format, 0, NULL)) < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue