pulse-server: update quirks before querying the name

`client_update_quirks()` may modify `client::props` depending
on the "pulse.rules" section defined in the configuration file,
which means that it can change the value corresponding to the
"application.name" key. Therefore, `client::name` needs to
be queried after that.
This commit is contained in:
Barnabás Pőcze 2022-06-20 17:39:24 +02:00 committed by Wim Taymans
parent 0f45d784d8
commit 97a275e71e

View file

@ -1034,12 +1034,12 @@ static int do_set_client_name(struct client *client, uint32_t command, uint32_t
changed++;
}
client_update_quirks(client);
client->name = pw_properties_get(client->props, PW_KEY_APP_NAME);
pw_log_info("[%s] %s tag:%d", client->name,
commands[command].name, tag);
client_update_quirks(client);
if (client->core == NULL) {
client->core = pw_context_connect(impl->context,
pw_properties_copy(client->props), 0);