pulse-server: move quirks to config section

Make a pulse.rules section in the config file with match rules. Add
support for setting custom client properties and quirks.
This commit is contained in:
Wim Taymans 2022-01-22 11:51:11 +01:00
parent 2e1a08edc2
commit 7f08cadca4
3 changed files with 145 additions and 58 deletions

View file

@ -888,6 +888,8 @@ static int do_set_client_name(struct client *client, uint32_t command, uint32_t
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);
@ -911,8 +913,6 @@ static int do_set_client_name(struct client *client, uint32_t command, uint32_t
res = reply_set_client_name(client, tag);
}
client_update_quirks(client);
return res;
error:
pw_log_error("%p: failed to connect client: %s", impl, spa_strerror(res));