node: the callbacks determine async operation

This commit is contained in:
Wim Taymans 2017-05-11 16:11:08 +02:00
parent 361d2b6a87
commit 6cbf398ad4
7 changed files with 51 additions and 75 deletions

View file

@ -51,8 +51,6 @@ pinos_spa_node_load (PinosCore *core,
SpaEnumHandleFactoryFunc enum_func;
const SpaHandleFactory *factory;
void *iface;
SpaDictItem items[1];
SpaDict dict = SPA_DICT_INIT (1, items);
if ((hnd = dlopen (lib, RTLD_NOW)) == NULL) {
pinos_log_error ("can't load %s: %s", lib, dlerror());
@ -73,13 +71,10 @@ pinos_spa_node_load (PinosCore *core,
break;
}
items[0].key = "asynchronous";
items[0].value = "1";
handle = calloc (1, factory->size);
if ((res = spa_handle_factory_init (factory,
handle,
&dict,
NULL,
core->support,
core->n_support)) < 0) {
pinos_log_error ("can't make factory instance: %d", res);