From 94f372e95ecd718b7d2ed4f2aa1f0437e7968efb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 Mar 2012 13:56:39 +0000 Subject: Fix compilation with latest LV2. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4102 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/PatchImpl.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/server/PatchImpl.cpp') 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 c = PtrCast(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()); } } -- cgit v1.2.1