summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-29 10:42:09 -0400
committerDavid Robillard <d@drobilla.net>2016-10-29 10:42:09 -0400
commiteedcda48256831de49d7043355b837700bf64696 (patch)
tree57bc82ee7c315f691a199a2d1f24a522511aba70 /src
parentca4b7eaaa70a617f086fad29f0fdf12f0ad6a03e (diff)
downloadingen-eedcda48256831de49d7043355b837700bf64696.tar.gz
ingen-eedcda48256831de49d7043355b837700bf64696.tar.bz2
ingen-eedcda48256831de49d7043355b837700bf64696.zip
Fix running as LV2 with disconnected ports
Diffstat (limited to 'src')
-rw-r--r--src/server/InputPort.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp
index 3bc1ed95..5133758c 100644
--- a/src/server/InputPort.cpp
+++ b/src/server/InputPort.cpp
@@ -178,6 +178,10 @@ InputPort::pre_run(RunContext& context)
const uint32_t max_n_srcs = _arcs.size() * src_poly + 1;
for (uint32_t v = 0; v < _poly; ++v) {
+ if (!buffer(v)->get<void>()) {
+ continue;
+ }
+
// Get all sources for this voice
const Buffer* srcs[max_n_srcs];
uint32_t n_srcs = 0;