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/PatchImpl.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/PatchImpl.cpp')
-rw-r--r-- | src/server/PatchImpl.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server/PatchImpl.cpp b/src/server/PatchImpl.cpp index dca7f2ae..59a5e139 100644 --- a/src/server/PatchImpl.cpp +++ b/src/server/PatchImpl.cpp @@ -101,8 +101,7 @@ PatchImpl::disable() _process = false; for (Ports::iterator i = _outputs.begin(); i != _outputs.end(); ++i) - if ((*i)->context() == Context::AUDIO) - (*i)->clear_buffers(); + (*i)->clear_buffers(); } bool @@ -476,8 +475,8 @@ PatchImpl::compile() const for (Connections::const_iterator i = _connections.begin(); i != _connections.end(); ++i) { SharedPtr<ConnectionImpl> c = PtrCast<ConnectionImpl>(i->second); - if (c->src_port()->context() == Context::AUDIO && - c->dst_port()->context() == Context::MESSAGE) { + if (c->src_port()->parent_node()->context() == Context::AUDIO && + c->dst_port()->parent_node()->context() == Context::MESSAGE) { compiled_patch->queued_connections.push_back(c.get()); } } |