summaryrefslogtreecommitdiffstats
path: root/src/server/events/SetPortValue.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-23 13:56:39 +0000
committerDavid Robillard <d@drobilla.net>2012-03-23 13:56:39 +0000
commit94f372e95ecd718b7d2ed4f2aa1f0437e7968efb (patch)
tree98177dbce2673191181dd12b031ebe555866e846 /src/server/events/SetPortValue.cpp
parentefd0ddb79fbf4b792a9b865afb24a05441ed2bb2 (diff)
downloadingen-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/events/SetPortValue.cpp')
-rw-r--r--src/server/events/SetPortValue.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/events/SetPortValue.cpp b/src/server/events/SetPortValue.cpp
index 1c10abc5..6d088939 100644
--- a/src/server/events/SetPortValue.cpp
+++ b/src/server/events/SetPortValue.cpp
@@ -88,9 +88,8 @@ SetPortValue::pre_process()
// Port is a message context port, set its value and
// call the plugin's message run function once
- if (_port && _port->context() == Context::MESSAGE) {
+ if (_port && _port->parent_node()->context() == Context::MESSAGE) {
apply(*_engine.message_context());
- _port->parent_node()->set_port_valid(_port->index());
_engine.message_context()->run(_port->parent_node(),
_engine.driver()->frame_time() + _engine.driver()->block_length());
}
@@ -111,7 +110,7 @@ SetPortValue::execute(ProcessContext& context)
Event::execute(context);
assert(_time >= context.start() && _time <= context.end());
- if (_port && _port->context() == Context::MESSAGE)
+ if (_port && _port->parent_node()->context() == Context::MESSAGE)
return;
apply(context);