module: load and register in one go

Load and register the module in one go because we need to have the
global set when calling the init function so that factories and nodes
can use this as the parent global.
Set the name in the global properties.
This commit is contained in:
Wim Taymans 2018-01-23 15:25:48 +01:00
parent 1ed63e7ba0
commit 5df5afd0a9
7 changed files with 50 additions and 45 deletions

View file

@ -138,7 +138,7 @@ int main(int argc, char *argv[])
if (argc > 3)
data.path = argv[3];
pw_module_load(data.core, "libpipewire-module-spa-node-factory", NULL);
pw_module_load(data.core, "libpipewire-module-spa-node-factory", NULL, NULL, NULL, NULL);
spa_debug_set_type_map(data.t->map);