Make separate _register function so that we can first configure the
object before making it publicly visible.
This commit is contained in:
Wim Taymans 2017-09-18 11:54:25 +02:00
parent 67d4dd8656
commit f64c28c091
25 changed files with 131 additions and 99 deletions

View file

@ -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);
}