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:
Wim Taymans 2020-03-02 15:47:04 +01:00
parent e76351da79
commit 73da0f8878

View file

@ -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;