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/MessageContext.cpp | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'src/server/MessageContext.cpp') diff --git a/src/server/MessageContext.cpp b/src/server/MessageContext.cpp index d24abba8..ab15ec8d 100644 --- a/src/server/MessageContext.cpp +++ b/src/server/MessageContext.cpp @@ -1,5 +1,5 @@ /* This file is part of Ingen. - * Copyright 2008-2011 David Robillard + * Copyright 2008-2012 David Robillard * * Ingen is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software @@ -16,7 +16,7 @@ */ #include -#include "lv2/lv2plug.in/ns/ext/contexts/contexts.h" +#include "lv2/lv2plug.in/ns/ext/worker/worker.h" #include "raul/log.hpp" #include "ConnectionImpl.hpp" #include "Engine.hpp" @@ -100,26 +100,7 @@ void MessageContext::execute(const Request& req) { NodeImpl* node = req.node; - node->message_run(*this); - - void* valid_ports = node->valid_ports(); - PatchImpl* patch = node->parent_patch(); - - for (uint32_t i = 0; i < node->num_ports(); ++i) { - PortImpl* p = node->port_impl(i); - if (p->is_output() && p->context() == Context::MESSAGE && - lv2_contexts_port_is_valid(valid_ports, i)) { - PatchImpl::Connections& wires = patch->connections(); - for (PatchImpl::Connections::iterator c = wires.begin(); c != wires.end(); ++c) { - ConnectionImpl* ci = (ConnectionImpl*)c->second.get(); - if (ci->src_port() == p && ci->dst_port()->context() == Context::MESSAGE) { - _queue.insert(Request(req.time, ci->dst_port()->parent_node())); - } - } - } - } - - node->reset_valid_ports(); + node->work(*this, 0, NULL); } } // namespace Server -- cgit v1.2.1