PIPEWIRE_LATENCY always overrides app settings

This commit is contained in:
Wim Taymans 2021-02-20 20:59:41 +01:00
parent a5dc2493df
commit 71e37f93f3
3 changed files with 5 additions and 10 deletions

View file

@ -2517,8 +2517,7 @@ jack_client_t * jack_client_open (const char *client_name,
pw_properties_set(client->props, PW_KEY_MEDIA_CATEGORY, "Duplex");
if (pw_properties_get(client->props, PW_KEY_MEDIA_ROLE) == NULL)
pw_properties_set(client->props, PW_KEY_MEDIA_ROLE, "DSP");
if (pw_properties_get(client->props, PW_KEY_NODE_LATENCY) == NULL &&
(str = getenv("PIPEWIRE_LATENCY")) != NULL)
if ((str = getenv("PIPEWIRE_LATENCY")) != NULL)
pw_properties_set(client->props, PW_KEY_NODE_LATENCY, str);
if (pw_properties_get(client->props, PW_KEY_NODE_ALWAYS_PROCESS) == NULL)
pw_properties_set(client->props, PW_KEY_NODE_ALWAYS_PROCESS, "true");