From 9074bfc23a778ac19030e3a50ff054cad045864e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 12 Feb 2021 18:10:40 +0100 Subject: [PATCH] module-rtkit: don't use dbus when disabled --- src/modules/module-rtkit.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/module-rtkit.c b/src/modules/module-rtkit.c index b26b1ce32..6c2977f0c 100644 --- a/src/modules/module-rtkit.c +++ b/src/modules/module-rtkit.c @@ -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;