pulse: clean up introspection

Make sure we always first update the registry.
Call callbacks with the right return value and set the context
error on errors correctly.
Remove some old code.
This commit is contained in:
Wim Taymans 2020-07-20 13:13:22 +02:00
parent 246ad5fb37
commit 62f7da880a
2 changed files with 320 additions and 326 deletions

View file

@ -1627,7 +1627,7 @@ static void do_default_node(pa_operation *o, void *userdata)
if (error != 0)
pa_context_set_error(c, error);
if (d->cb)
d->cb(c, error != 0 ? -1 : 1, d->userdata);
d->cb(c, error != 0 ? 0 : 1, d->userdata);
pa_operation_done(o);
pa_xfree(d->name);
}

File diff suppressed because it is too large Load diff