mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
jack: use pthread cancel to stop the data thread
Activate the new option to pthread_cancel the data thread because that is what jack apps expect. Fixes #211
This commit is contained in:
parent
e76351da79
commit
73da0f8878
1 changed files with 3 additions and 1 deletions
|
|
@ -2217,7 +2217,9 @@ jack_client_t * jack_client_open (const char *client_name,
|
|||
#endif
|
||||
}
|
||||
|
||||
client->loop = pw_data_loop_new(NULL);
|
||||
props = SPA_DICT_INIT(items, 0);
|
||||
items[props.n_items++] = SPA_DICT_ITEM_INIT("loop.cancel", "1");
|
||||
client->loop = pw_data_loop_new(&props);
|
||||
if (client->loop == NULL)
|
||||
goto init_failed;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue