mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
Add parent_id
Add parent_id to globals to make hierarchy of interfaces. We can use this to group interfaces or to describe the owner.
This commit is contained in:
parent
1acba78234
commit
a003d1a39f
27 changed files with 151 additions and 99 deletions
|
|
@ -464,7 +464,7 @@ static void make_nodes(struct data *data)
|
|||
struct pw_node_factory *factory;
|
||||
struct pw_properties *props;
|
||||
|
||||
data->node = pw_node_new(data->core, NULL, "SDL-sink", NULL, 0);
|
||||
data->node = pw_node_new(data->core, NULL, NULL, "SDL-sink", NULL, 0);
|
||||
data->node->user_data = data;
|
||||
data->node->implementation = &impl_node;
|
||||
|
||||
|
|
@ -480,6 +480,7 @@ static void make_nodes(struct data *data)
|
|||
data->v4l2 = pw_node_factory_create_node(factory, NULL, "v4l2-source", props);
|
||||
|
||||
data->link = pw_link_new(data->core,
|
||||
NULL,
|
||||
pw_node_get_free_port(data->v4l2, PW_DIRECTION_OUTPUT),
|
||||
data->port,
|
||||
NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue