mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
module-rtkit: don't use dbus when disabled
This commit is contained in:
parent
70390a631e
commit
9074bfc23a
1 changed files with 7 additions and 0 deletions
|
|
@ -546,6 +546,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
struct spa_system *system;
|
||||
const struct spa_support *support;
|
||||
uint32_t n_support;
|
||||
const struct pw_properties *props;
|
||||
const char *str;
|
||||
int res;
|
||||
|
||||
support = pw_context_get_support(context, &n_support);
|
||||
|
|
@ -558,6 +560,11 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
if (system == NULL)
|
||||
return -ENOTSUP;
|
||||
|
||||
if ((props = pw_context_get_properties(context)) != NULL &&
|
||||
(str = pw_properties_get(props, "support.dbus")) != NULL &&
|
||||
!pw_properties_parse_bool(str))
|
||||
return -ENOTSUP;
|
||||
|
||||
impl = calloc(1, sizeof(struct impl));
|
||||
if (impl == NULL)
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue