mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-07 08:21:11 -04:00
Revert "impl-node: Don't suspend when links are busy"
This reverts commit bb0efd777f.
It is unclear what the problem was before this commit. If there are any
pending operations, the suspend should simply cancel them.
See #5207
This commit is contained in:
parent
9afb0f1cc6
commit
1689b441d3
1 changed files with 0 additions and 15 deletions
|
|
@ -537,21 +537,6 @@ static int suspend_node(struct pw_impl_node *this)
|
|||
if (this->info.state > 0 && this->info.state <= PW_NODE_STATE_SUSPENDED)
|
||||
return 0;
|
||||
|
||||
spa_list_for_each(p, &this->input_ports, link) {
|
||||
if (p->busy_count > 0) {
|
||||
pw_log_debug("%p: can't suspend, input port %d busy:%d",
|
||||
this, p->port_id, p->busy_count);
|
||||
return -EBUSY;
|
||||
}
|
||||
}
|
||||
spa_list_for_each(p, &this->output_ports, link) {
|
||||
if (p->busy_count > 0) {
|
||||
pw_log_debug("%p: can't suspend, output port %d busy:%d",
|
||||
this, p->port_id, p->busy_count);
|
||||
return -EBUSY;
|
||||
}
|
||||
}
|
||||
|
||||
node_deactivate(this);
|
||||
|
||||
pw_log_debug("%p: suspend node driving:%d driver:%d prepared:%d", this,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue