From 73da0f88780c01563537f64d766fa7a83a315d7e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 2 Mar 2020 15:47:04 +0100 Subject: [PATCH] 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 --- pipewire-jack/src/pipewire-jack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c index 3ba41df3d..252a9ab80 100644 --- a/pipewire-jack/src/pipewire-jack.c +++ b/pipewire-jack/src/pipewire-jack.c @@ -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;