summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-22 17:13:57 +0000
committerDavid Robillard <d@drobilla.net>2012-05-22 17:13:57 +0000
commita147df82930aa187b7f1f8a4e6cf4459e500b087 (patch)
treea589663a81857fbb8253d8efecbdb964aaed90d2 /src
parent81884522025e2147e309b8042bbbc6ebcd927cc7 (diff)
downloadingen-a147df82930aa187b7f1f8a4e6cf4459e500b087.tar.gz
ingen-a147df82930aa187b7f1f8a4e6cf4459e500b087.tar.bz2
ingen-a147df82930aa187b7f1f8a4e6cf4459e500b087.zip
Fix crash when connecting control port to audio output on the root patch.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4434 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/server/InputPort.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp
index 3ff8cd41..8cb6415b 100644
--- a/src/server/InputPort.cpp
+++ b/src/server/InputPort.cpp
@@ -226,6 +226,7 @@ bool
InputPort::direct_connect() const
{
return _edges.size() == 1
+ && !_parent->path().is_root()
&& !_edges.front().must_mix()
&& !_edges.front().must_queue();
}