mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-06 04:48:10 +02:00
lib: core: set the export core to be shared to pipewire modules
pw_context allows sharing a core between modules and this is useful to avoid having all the role loopbacks connect to pipewire on their own
This commit is contained in:
parent
b029e5a5b5
commit
8012fbd5cf
1 changed files with 7 additions and 0 deletions
|
|
@ -886,6 +886,13 @@ wp_core_connect (WpCore *self)
|
|||
/* Add the registry listener */
|
||||
wp_registry_attach (&self->registry, self->pw_core);
|
||||
|
||||
/* Set the export core to be the one shared between pipewire modules */
|
||||
if (pw_properties_get_bool (pw_core_get_properties (self->pw_core),
|
||||
"wireplumber.export-core", false)) {
|
||||
wp_debug_object (self, "set export core to be shared in pipewire modules");
|
||||
pw_context_set_object (self->pw_context, PW_TYPE_INTERFACE_Core, self->pw_core);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue