conf: fix priority of the overrides

A config file with a higher level should override one with a lower
level.

Fixes #4816
This commit is contained in:
Wim Taymans 2025-08-01 10:49:26 +02:00
parent bef0706238
commit 88d7d5706a

View file

@ -441,7 +441,7 @@ static bool check_override(struct pw_properties *conf, const char *name, int lev
continue;
if (sscanf(it->key, "override.%d.%d.config.name", &lev, &idx) != 2)
continue;
if (lev < level)
if (lev > level)
return false;
}
return true;