module: fix registration of modules

Don't fail when protocol-native is already registered.
This commit is contained in:
Wim Taymans 2017-07-19 12:44:10 +02:00
parent 91d54364fc
commit 589e3d977c
10 changed files with 50 additions and 36 deletions

View file

@ -492,7 +492,6 @@ static void make_nodes(struct data *data)
int main(int argc, char *argv[])
{
struct data data = { 0, };
char *err;
pw_init(&argc, &argv);
@ -501,7 +500,7 @@ int main(int argc, char *argv[])
data.core = pw_core_new(data.loop, NULL);
data.path = argc > 1 ? argv[1] : NULL;
pw_module_load(data.core, "libpipewire-module-spa-node-factory", NULL, &err);
pw_module_load(data.core, "libpipewire-module-spa-node-factory", NULL);
init_type(&data.type, data.core->type.map);