summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-11-13 21:31:09 +0100
committerRobin Gareus <robin@gareus.org>2014-11-13 21:31:09 +0100
commitb376f6bc45f8c88ada432bce30a70d7ae424e978 (patch)
treeef63f269c971f1f8d9ce645f307cd2d6f7e8f582 /libs
parentb9fc616538deab68d229eb126b6ef9cf8c5157ca (diff)
auto-initialize weak-jack
(not needed with ardour - but keep code in sync with https://github.com/x42/weakjack)
Diffstat (limited to 'libs')
-rw-r--r--libs/backends/jack/weak_libjack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/backends/jack/weak_libjack.c b/libs/backends/jack/weak_libjack.c
index 02705f44af..1bd3305dfc 100644
--- a/libs/backends/jack/weak_libjack.c
+++ b/libs/backends/jack/weak_libjack.c
@@ -191,6 +191,9 @@ int have_libjack (void) {
/* dedicated support for jack_client_open(,..) variable arg function macro */
func_t WJACK_get_client_open(void) {
+ if (_status == -1) {
+ init_weak_jack();
+ }
return _j._client_open;
}