update modules

This commit is contained in:
Wim Taymans 2016-07-13 18:36:24 +02:00
parent 6ab8af91e0
commit 17ef36c9c1
2 changed files with 4 additions and 2 deletions

View file

@ -79,7 +79,8 @@ make_node (SpaHandle **handle, const SpaNode **node, const char *lib, const char
if (strcmp (factory->name, name))
continue;
if ((res = factory->instantiate (factory, handle)) < 0) {
*handle = calloc (1, factory->size);
if ((res = factory->init (factory, *handle)) < 0) {
g_error ("can't make factory instance: %d", res);
return res;
}

View file

@ -98,7 +98,8 @@ make_node (SpaHandle **handle, const SpaNode **node, const char *lib, const char
if (strcmp (factory->name, name))
continue;
if ((res = factory->instantiate (factory, handle)) < 0) {
*handle = calloc (1, factory->size);
if ((res = factory->init (factory, *handle)) < 0) {
g_error ("can't make factory instance: %d", res);
return res;
}