diff options
author | David Robillard <d@drobilla.net> | 2008-07-10 17:34:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-07-10 17:34:29 +0000 |
commit | f7eab5b56d8b77b3e0cd0b42ff5a94aae69942ca (patch) | |
tree | 5183d1d80f6a56b6a35cfb84a962da775e539536 /src/PatchageEvent.cpp | |
parent | 7e8a156e7580609739408bb31f7415f5319d0e9f (diff) | |
download | patchage-f7eab5b56d8b77b3e0cd0b42ff5a94aae69942ca.tar.gz patchage-f7eab5b56d8b77b3e0cd0b42ff5a94aae69942ca.tar.bz2 patchage-f7eab5b56d8b77b3e0cd0b42ff5a94aae69942ca.zip |
Fix patchage/raul building without jack.
git-svn-id: http://svn.drobilla.net/lad/patchage@1291 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageEvent.cpp')
-rw-r--r-- | src/PatchageEvent.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp index 1c1f755..a7a84be 100644 --- a/src/PatchageEvent.cpp +++ b/src/PatchageEvent.cpp @@ -57,13 +57,17 @@ PatchageEvent::execute(Patchage* patchage) } else if (_type == PORT_CREATION) { - Driver* driver; - if (_port_1.type == PatchageEvent::PortRef::JACK_ID) + Driver* driver = NULL; + if (_port_1.type == PatchageEvent::PortRef::JACK_ID) { +#if defined(HAVE_JACK) || defined(HAVE_JACK_DBUS) driver = patchage->jack_driver(); +#endif #ifdef HAVE_ALSA - else if (_port_1.type == PatchageEvent::PortRef::ALSA_ADDR) + } else if (_port_1.type == PatchageEvent::PortRef::ALSA_ADDR) { driver = patchage->alsa_driver(); #endif + } + if (driver) { if ( ! driver->create_port_view(patchage, _port_1)) |