mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
jack: switch to new property helpers
This commit is contained in:
parent
0028b294d0
commit
fb884b9441
1 changed files with 5 additions and 12 deletions
|
|
@ -3032,15 +3032,10 @@ jack_client_t * jack_client_open (const char *client_name,
|
||||||
execute_match, client);
|
execute_match, client);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((str = pw_properties_get(client->props, "jack.merge-monitor")) != NULL)
|
client->merge_monitor = pw_properties_get_bool(client->props, "jack.merge-monitor", false);
|
||||||
client->merge_monitor = pw_properties_parse_bool(str);
|
client->short_name = pw_properties_get_bool(client->props, "jack.short-name", false);
|
||||||
if ((str = pw_properties_get(client->props, "jack.short-name")) != NULL)
|
client->filter_name = pw_properties_get_bool(client->props, "jack.filter-name", false);
|
||||||
client->short_name = pw_properties_parse_bool(str);
|
client->locked_process = pw_properties_get_bool(client->props, "jack.locked-process", true);
|
||||||
if ((str = pw_properties_get(client->props, "jack.filter-name")) != NULL)
|
|
||||||
client->filter_name = pw_properties_parse_bool(str);
|
|
||||||
|
|
||||||
str = pw_properties_get(client->props, "jack.locked-process");
|
|
||||||
client->locked_process = str ? pw_properties_parse_bool(str) : true;
|
|
||||||
|
|
||||||
client->self_connect_mode = SELF_CONNECT_ALLOW;
|
client->self_connect_mode = SELF_CONNECT_ALLOW;
|
||||||
if ((str = pw_properties_get(client->props, "jack.self-connect-mode")) != NULL) {
|
if ((str = pw_properties_get(client->props, "jack.self-connect-mode")) != NULL) {
|
||||||
|
|
@ -3053,9 +3048,7 @@ jack_client_t * jack_client_open (const char *client_name,
|
||||||
else if (spa_streq(str, "ignore-all"))
|
else if (spa_streq(str, "ignore-all"))
|
||||||
client->self_connect_mode = SELF_CONNECT_IGNORE_ALL;
|
client->self_connect_mode = SELF_CONNECT_IGNORE_ALL;
|
||||||
}
|
}
|
||||||
client->rt_max = DEFAULT_RT_MAX;
|
client->rt_max = pw_properties_get_int32(client->props, "rt.prio", DEFAULT_RT_MAX);
|
||||||
if ((str = pw_properties_get(client->props, "rt.prio")) != NULL)
|
|
||||||
client->rt_max = atoi(str);
|
|
||||||
|
|
||||||
pthread_mutex_init(&client->context.lock, NULL);
|
pthread_mutex_init(&client->context.lock, NULL);
|
||||||
pthread_mutex_init(&client->rt_lock, NULL);
|
pthread_mutex_init(&client->rt_lock, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue