context: disable mlock warnings by default

Make this a tunable option instead.
This commit is contained in:
Wim Taymans 2021-02-08 10:59:02 +01:00
parent cd2a7aebaf
commit 210950dc0a
7 changed files with 25 additions and 9 deletions

View file

@ -1218,7 +1218,7 @@ static struct pw_proxy *node_export(struct pw_core *core, void *object, bool do_
if ((str = pw_properties_get(node->properties, "mem.allow-mlock")) != NULL)
data->allow_mlock = pw_properties_parse_bool(str);
data->warn_mlock = true;
data->warn_mlock = data->context->defaults.mem_warn_mlock;
if ((str = pw_properties_get(node->properties, "mem.warn-mlock")) != NULL)
data->warn_mlock = pw_properties_parse_bool(str);