mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
node: remove and add node from graph in idle/running
Add the node and all links to the graph when going to running and remove them again when idle.
This commit is contained in:
parent
cd1c7b74af
commit
0f69a7b767
6 changed files with 121 additions and 105 deletions
|
|
@ -788,7 +788,7 @@ static int impl_node_process(struct spa_node *node)
|
|||
trigger = status & SPA_STATUS_HAVE_BUFFER;
|
||||
|
||||
if (trigger && !impl->this.node->driver)
|
||||
spa_graph_run(impl->client_node->node->rt.root.graph);
|
||||
spa_graph_run(impl->client_node->node->rt.driver);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
|
@ -880,7 +880,7 @@ static void client_node_initialized(void *data)
|
|||
else
|
||||
exclusive = false;
|
||||
|
||||
impl->client_node->node->rt.driver = impl->this.node->rt.driver;
|
||||
spa_graph_node_add(impl->client_node->node->rt.driver, &impl->client_node->node->rt.root);
|
||||
|
||||
impl->client_port = pw_node_find_port(impl->client_node->node, impl->direction, 0);
|
||||
if (impl->client_port == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue