mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -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
|
|
@ -886,7 +886,7 @@ struct pw_jack_node *pw_jack_node_new(struct pw_core *core,
|
|||
}
|
||||
pw_properties_setf(properties, "jack.ref-num", "%d", ref_num);
|
||||
|
||||
node = pw_node_new(core, NULL, parent, name, properties, sizeof(struct node_data) + user_data_size);
|
||||
node = pw_node_new(core, name, properties, sizeof(struct node_data) + user_data_size);
|
||||
if (node == NULL)
|
||||
return NULL;
|
||||
|
||||
|
|
@ -917,7 +917,7 @@ struct pw_jack_node *pw_jack_node_new(struct pw_core *core,
|
|||
jack_connection_manager_init_ref_num(conn, ref_num);
|
||||
jack_graph_manager_next_stop(mgr);
|
||||
|
||||
pw_node_register(node);
|
||||
pw_node_register(node, NULL, parent);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
|
@ -960,7 +960,7 @@ pw_jack_driver_new(struct pw_core *core,
|
|||
}
|
||||
pw_properties_setf(properties, "jack.ref-num", "%d", ref_num);
|
||||
|
||||
node = pw_node_new(core, NULL, parent, name, properties, sizeof(struct node_data) + user_data_size);
|
||||
node = pw_node_new(core, name, properties, sizeof(struct node_data) + user_data_size);
|
||||
if (node == NULL)
|
||||
return NULL;
|
||||
|
||||
|
|
@ -1013,7 +1013,7 @@ pw_jack_driver_new(struct pw_core *core,
|
|||
this->driver_out = alloc_port(this, PW_DIRECTION_OUTPUT, 0);
|
||||
pw_port_add(this->driver_out->port, node);
|
||||
}
|
||||
pw_node_register(node);
|
||||
pw_node_register(node, NULL, parent);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue