mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
node: allow for setting driver root
The driver root is the graph that should be run when a remote driver starts the graph and can be different from the node itself when it's part of a subgraph like in client-stream.
This commit is contained in:
parent
32afd8d228
commit
0bc6ba8559
3 changed files with 11 additions and 8 deletions
|
|
@ -241,7 +241,7 @@ static int impl_node_set_param(struct spa_node *node, uint32_t id, uint32_t flag
|
|||
|
||||
static int impl_node_set_io(struct spa_node *node, uint32_t id, void *data, size_t size)
|
||||
{
|
||||
return -ENOTSUP;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int impl_node_send_command(struct spa_node *node, const struct spa_command *command)
|
||||
|
|
@ -980,7 +980,7 @@ static void client_node_initialized(void *data)
|
|||
exclusive = false;
|
||||
|
||||
spa_graph_node_add(impl->client_node->node->rt.driver, &impl->client_node->node->rt.root);
|
||||
impl->client_node->node->driver_node = impl->this.node;
|
||||
impl->client_node->node->driver_root = impl->this.node;
|
||||
|
||||
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