diff options
author | David Robillard <d@drobilla.net> | 2012-03-23 13:56:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-23 13:56:39 +0000 |
commit | 94f372e95ecd718b7d2ed4f2aa1f0437e7968efb (patch) | |
tree | 98177dbce2673191181dd12b031ebe555866e846 /src/server/InputPort.cpp | |
parent | efd0ddb79fbf4b792a9b865afb24a05441ed2bb2 (diff) | |
download | ingen-94f372e95ecd718b7d2ed4f2aa1f0437e7968efb.tar.gz ingen-94f372e95ecd718b7d2ed4f2aa1f0437e7968efb.tar.bz2 ingen-94f372e95ecd718b7d2ed4f2aa1f0437e7968efb.zip |
Fix compilation with latest LV2.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4102 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/InputPort.cpp')
-rw-r--r-- | src/server/InputPort.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp index 42d6c83d..7e3a0fda 100644 --- a/src/server/InputPort.cpp +++ b/src/server/InputPort.cpp @@ -94,7 +94,8 @@ InputPort::get_buffers(BufferFactory& bufs, } else if (num_connections == 1) { if (ThreadManager::thread_is(THREAD_PROCESS)) { - if (!_connections.front().must_mix() && !_connections.front().must_queue()) { + if (!_connections.front().must_mix() && + !_connections.front().must_queue()) { // Single non-mixing conneciton, use buffers directly for (uint32_t v = 0; v < poly; ++v) buffers->at(v) = _connections.front().buffer(v); @@ -229,8 +230,7 @@ InputPort::post_process(Context& context) bool InputPort::direct_connect() const { - return (context() == Context::AUDIO) - && _connections.size() == 1 + return _connections.size() == 1 && !_connections.front().must_mix() && !_connections.front().must_queue(); } |