mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
Cleanups
Make separate _register function so that we can first configure the object before making it publicly visible.
This commit is contained in:
parent
67d4dd8656
commit
f64c28c091
25 changed files with 131 additions and 99 deletions
|
|
@ -367,11 +367,11 @@ static void make_node(struct data *data)
|
|||
if (data->path)
|
||||
pw_properties_set(props, "pipewire.target.node", data->path);
|
||||
|
||||
data->node = pw_node_new(data->core, NULL, NULL, "sine-source", props, 0);
|
||||
data->node = pw_node_new(data->core, "sine-source", props, 0);
|
||||
data->impl_node = impl_node;
|
||||
pw_node_set_implementation(data->node, &data->impl_node);
|
||||
|
||||
pw_node_register(data->node);
|
||||
pw_node_register(data->node, NULL, NULL);
|
||||
|
||||
pw_remote_export(data->remote, data->node);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue