mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
global: fix parent global
Only use the global of the owner as the parent if we don't already have a parent.
This commit is contained in:
parent
70687e466d
commit
001e693e5c
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ pw_global_register(struct pw_global *global,
|
||||||
struct pw_core *core = global->core;
|
struct pw_core *core = global->core;
|
||||||
|
|
||||||
global->owner = owner;
|
global->owner = owner;
|
||||||
if (owner)
|
if (owner && parent == NULL)
|
||||||
parent = owner->global;
|
parent = owner->global;
|
||||||
if (parent == NULL)
|
if (parent == NULL)
|
||||||
parent = core->global;
|
parent = core->global;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue