pipewire: merge, not overwrite the context.properties from the config file

Any values already set in the properties list (e.g. from earlier getenv())
calls should not be overwritten by the value in the config file.
This commit is contained in:
Peter Hutterer 2021-05-26 16:33:21 +10:00 committed by Wim Taymans
parent b179e81070
commit f775547528

View file

@ -250,7 +250,7 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop,
cpu = spa_support_find(this->support, n_support, SPA_TYPE_INTERFACE_CPU);
if ((str = pw_properties_get(conf, "context.properties")) != NULL) {
pw_properties_update_string(properties, str, strlen(str));
pw_properties_add_string(properties, str, strlen(str));
pw_log_info(NAME" %p: parsed context.properties section", this);
}