summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-06-13 19:11:37 +0000
committerDavid Robillard <d@drobilla.net>2010-06-13 19:11:37 +0000
commit190d2270642bdf85e12e5383adc6e63ae9c2825d (patch)
treefa02e98bd3921aab6c48baae896d08cc5ff217c1
parent49fc7f02917f7616e1cfebac772588cd348cfc65 (diff)
downloadpatchage-190d2270642bdf85e12e5383adc6e63ae9c2825d.tar.gz
patchage-190d2270642bdf85e12e5383adc6e63ae9c2825d.tar.bz2
patchage-190d2270642bdf85e12e5383adc6e63ae9c2825d.zip
Fix compilation without Jack even more :)
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2580 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/Patchage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 22c52fb..4be7753 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -339,8 +339,10 @@ Patchage::idle_callback()
if (_refresh) {
refresh();
} else if (_driver_detached) {
+#if defined(USE_LIBJACK) || defined(HAVE_JACK_DBUS)
if (_jack_driver && !_jack_driver->is_attached())
_jack_driver->destroy_all();
+#endif
#ifdef HAVE_ALSA
if (_alsa_driver && !_alsa_driver->is_attached())
_alsa_driver->destroy_all();