mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
Move suspend on idle in module
Move suspend-on-idle code from the node to a module Add some more SpaLoop API
This commit is contained in:
parent
d250ed42e6
commit
3dcbf4b228
13 changed files with 363 additions and 110 deletions
|
|
@ -96,7 +96,7 @@ try_link_port (PinosNode *node, PinosPort *port, ModuleImpl *impl)
|
|||
|
||||
error:
|
||||
{
|
||||
pinos_node_report_error (node, error);
|
||||
pinos_node_update_state (node, PINOS_NODE_STATE_ERROR, error);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
@ -128,9 +128,9 @@ on_link_state_changed (PinosListener *listener,
|
|||
pinos_log_debug ("module %p: link %p: state error: %s", impl, link, link->error);
|
||||
|
||||
if (link->input && link->input->node)
|
||||
pinos_node_report_error (link->input->node, strdup (link->error));
|
||||
pinos_node_update_state (link->input->node, PINOS_NODE_STATE_ERROR, strdup (link->error));
|
||||
if (link->output && link->output->node)
|
||||
pinos_node_report_error (link->output->node, strdup (link->error));
|
||||
pinos_node_update_state (link->output->node, PINOS_NODE_STATE_ERROR, strdup (link->error));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue