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:
Wim Taymans 2021-10-13 10:54:45 +02:00
parent e77a0e8dc4
commit d8540cc596

View file

@ -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)
return 0;
pause_node(this);
node_deactivate(this);
spa_list_for_each(p, &this->input_ports, link) {
if ((res = pw_impl_port_set_param(p, SPA_PARAM_Format, 0, NULL)) < 0)