From 0912201664bc1fa277d551af9b6f302a9e996297 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Wed, 28 Feb 2024 11:44:25 +0200 Subject: [PATCH] pw_context_parse_conf_section: use the conf argument instead of the context's conf The conf argument was unused before, but it is correctly populated using the context's conf in pw_context_new(), so the code behaves the same effectively. This allows parsing standard conf sections from other configuration sources, as long as the sections are placed in a dictionary. --- src/pipewire/conf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pipewire/conf.c b/src/pipewire/conf.c index 87a2586c6..4e81baf60 100644 --- a/src/pipewire/conf.c +++ b/src/pipewire/conf.c @@ -1225,16 +1225,16 @@ int pw_context_parse_conf_section(struct pw_context *context, int res; if (spa_streq(section, "context.spa-libs")) - res = pw_context_conf_section_for_each(context, section, + res = pw_conf_section_for_each(&conf->dict, section, parse_spa_libs, &data); else if (spa_streq(section, "context.modules")) - res = pw_context_conf_section_for_each(context, section, + res = pw_conf_section_for_each(&conf->dict, section, parse_modules, &data); else if (spa_streq(section, "context.objects")) - res = pw_context_conf_section_for_each(context, section, + res = pw_conf_section_for_each(&conf->dict, section, parse_objects, &data); else if (spa_streq(section, "context.exec")) - res = pw_context_conf_section_for_each(context, section, + res = pw_conf_section_for_each(&conf->dict, section, parse_exec, &data); else res = -EINVAL;