mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
context: add context.modules.allow-empty property
false by default, when true, no warning will be logged when the context.modules in the config is empty. This can be useful when the application wants to load all the modules itself.
This commit is contained in:
parent
d0c9d2f99d
commit
cddea858d9
2 changed files with 6 additions and 1 deletions
|
|
@ -357,7 +357,7 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop,
|
|||
pw_log_info("%p: parsed %d context.spa-libs items", this, res);
|
||||
if ((res = pw_context_parse_conf_section(this, conf, "context.modules")) < 0)
|
||||
goto error_free;
|
||||
if (res > 0)
|
||||
if (res > 0 || pw_properties_get_bool(properties, "context.modules.allow-empty", false))
|
||||
pw_log_info("%p: parsed %d context.modules items", this, res);
|
||||
else
|
||||
pw_log_warn("%p: no modules loaded from context.modules", this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue