]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ucm: libconfig parser - fix pathname for substituted file
authorJaroslav Kysela <perex@perex.cz>
Mon, 26 Jan 2026 14:08:54 +0000 (15:08 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 26 Jan 2026 14:10:46 +0000 (15:10 +0100)
The path name substituted file contents and normal file contents
should be handled similary. Use correct function determining
the right base directory name.

Fixes: 8f5779eb ("ucm: add LibraryConfig support")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/parser.c

index 60861213d4694e59289f5d3bc42ba59e5ebca7ef..baa191448cd1eda31bc2a449b3c6f636306e2adb 100644 (file)
@@ -804,7 +804,7 @@ static int parse_libconfig1(snd_use_case_mgr_t *uc_mgr, snd_config_t *cfg)
        if (file) {
                if (substfile) {
                        snd_config_t *cfg;
-                       err = uc_mgr_config_load(uc_mgr->conf_format, file, &cfg);
+                       err = uc_mgr_config_load_file(uc_mgr, file, &cfg);
                        if (err < 0)
                                return err;
                        err = uc_mgr_substitute_tree(uc_mgr, cfg);