From 4a7a2f334dfff2df1449a8ba05aaf68219ff32eb Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 9 Oct 2013 19:29:04 -0400 Subject: [PATCH] force zero return for thread ID for non-external clients, since internal/driver clients have no separate thread --- libjack/client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libjack/client.c b/libjack/client.c index 99b4895..0173bac 100644 --- a/libjack/client.c +++ b/libjack/client.c @@ -2987,6 +2987,11 @@ jack_reset_max_delayed_usecs (jack_client_t *client) pthread_t jack_client_thread_id (jack_client_t *client) { + if (client->control->type != ClientExternal) { + /* Internal and driver clients run in ... ??? */ + return 0; + } + return client->thread_id; }