mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
PIPEWIRE_LATENCY always overrides app settings
This commit is contained in:
parent
a5dc2493df
commit
71e37f93f3
3 changed files with 5 additions and 10 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -1003,10 +1003,8 @@ filter_new(struct pw_context *context, const char *name,
|
|||
str = name;
|
||||
pw_properties_set(props, PW_KEY_NODE_NAME, str);
|
||||
}
|
||||
if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL) {
|
||||
if ((str = getenv("PIPEWIRE_LATENCY")) != NULL)
|
||||
pw_properties_set(props, PW_KEY_NODE_LATENCY, str);
|
||||
}
|
||||
if ((str = getenv("PIPEWIRE_LATENCY")) != NULL)
|
||||
pw_properties_set(props, PW_KEY_NODE_LATENCY, str);
|
||||
|
||||
spa_hook_list_init(&impl->hooks);
|
||||
this->properties = props;
|
||||
|
|
|
|||
|
|
@ -1188,10 +1188,8 @@ stream_new(struct pw_context *context, const char *name,
|
|||
str = name;
|
||||
pw_properties_set(props, PW_KEY_NODE_NAME, str);
|
||||
}
|
||||
if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL) {
|
||||
if ((str = getenv("PIPEWIRE_LATENCY")) != NULL)
|
||||
pw_properties_set(props, PW_KEY_NODE_LATENCY, str);
|
||||
}
|
||||
if ((str = getenv("PIPEWIRE_LATENCY")) != NULL)
|
||||
pw_properties_set(props, PW_KEY_NODE_LATENCY, str);
|
||||
|
||||
spa_hook_list_init(&impl->hooks);
|
||||
this->properties = props;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue