summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-02 23:01:26 -0400
committerDavid Robillard <d@drobilla.net>2016-10-02 23:01:26 -0400
commit05d89a68915df359fb50eae7e9a8e44a8bde7e7b (patch)
treed385eb39191dbe189b883bf5d553ec97bd0d43e3
parentf72958737b63f5179552ce30cdb98e2785519023 (diff)
downloadingen-05d89a68915df359fb50eae7e9a8e44a8bde7e7b.tar.gz
ingen-05d89a68915df359fb50eae7e9a8e44a8bde7e7b.tar.bz2
ingen-05d89a68915df359fb50eae7e9a8e44a8bde7e7b.zip
Fix MIDI I/O
-rw-r--r--src/server/InputPort.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp
index 7e7412cc..71fd69e4 100644
--- a/src/server/InputPort.cpp
+++ b/src/server/InputPort.cpp
@@ -155,7 +155,9 @@ InputPort::pre_process(RunContext& context)
update_set_state(context, v);
// Prepare for write in case a set event executes this cycle
- buffer(v)->prepare_write(context);
+ if (!_parent->path().is_root()) {
+ buffer(v)->prepare_write(context);
+ }
}
} else if (direct_connect()) {
// Directly connected, use source's buffer directly