mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
0f45d784d8
commit
97a275e71e
1 changed files with 2 additions and 2 deletions
|
|
@ -1034,12 +1034,12 @@ static int do_set_client_name(struct client *client, uint32_t command, uint32_t
|
||||||
changed++;
|
changed++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
client_update_quirks(client);
|
||||||
|
|
||||||
client->name = pw_properties_get(client->props, PW_KEY_APP_NAME);
|
client->name = pw_properties_get(client->props, PW_KEY_APP_NAME);
|
||||||
pw_log_info("[%s] %s tag:%d", client->name,
|
pw_log_info("[%s] %s tag:%d", client->name,
|
||||||
commands[command].name, tag);
|
commands[command].name, tag);
|
||||||
|
|
||||||
client_update_quirks(client);
|
|
||||||
|
|
||||||
if (client->core == NULL) {
|
if (client->core == NULL) {
|
||||||
client->core = pw_context_connect(impl->context,
|
client->core = pw_context_connect(impl->context,
|
||||||
pw_properties_copy(client->props), 0);
|
pw_properties_copy(client->props), 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue