mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
2e1a08edc2
commit
7f08cadca4
3 changed files with 145 additions and 58 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue