summaryrefslogtreecommitdiff
path: root/libs/backends/jack/jack_audiobackend.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-10-22 23:57:55 +0200
committerRobin Gareus <robin@gareus.org>2014-10-22 23:57:55 +0200
commitf7211ff8f773a5420883f3af9345c6852b0cb772 (patch)
treed4c6a566f4ea5e1175131d4a9f4d783d1377c396 /libs/backends/jack/jack_audiobackend.cc
parent679356c5ee1ac86ac6efa026e7ecfa514fa900d2 (diff)
fix jack/mingw compilation
Diffstat (limited to 'libs/backends/jack/jack_audiobackend.cc')
-rw-r--r--libs/backends/jack/jack_audiobackend.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/backends/jack/jack_audiobackend.cc b/libs/backends/jack/jack_audiobackend.cc
index 5dc8f23785..65df9a93fc 100644
--- a/libs/backends/jack/jack_audiobackend.cc
+++ b/libs/backends/jack/jack_audiobackend.cc
@@ -919,7 +919,12 @@ JACKAudioBackend::process_thread ()
/* JACK doesn't do this for us when we use the wait API
*/
+#ifdef COMPILER_MINGW
+ _main_thread = GetCurrentThread();
+#else
_main_thread = pthread_self ();
+#endif
+
AudioEngine::thread_init_callback (this);