mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
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:
parent
246ad5fb37
commit
62f7da880a
2 changed files with 320 additions and 326 deletions
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue