summaryrefslogtreecommitdiffstats
path: root/ingen/InstanceAccess.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-26 12:25:48 +0200
committerDavid Robillard <d@drobilla.net>2017-03-26 17:02:09 +0200
commitcfb016163227560932044b73407ae9dafa54b4ba (patch)
treec510f0535616bfe776b80021478c5c0be607cec9 /ingen/InstanceAccess.hpp
parentd70ddd35cc03b35d3b765079d6039fef7a2a19fa (diff)
downloadingen-cfb016163227560932044b73407ae9dafa54b4ba.tar.gz
ingen-cfb016163227560932044b73407ae9dafa54b4ba.tar.bz2
ingen-cfb016163227560932044b73407ae9dafa54b4ba.zip
Remove Node::instance() method
Diffstat (limited to 'ingen/InstanceAccess.hpp')
-rw-r--r--ingen/InstanceAccess.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/ingen/InstanceAccess.hpp b/ingen/InstanceAccess.hpp
index 443f5f55..d30ebf1d 100644
--- a/ingen/InstanceAccess.hpp
+++ b/ingen/InstanceAccess.hpp
@@ -28,12 +28,16 @@ struct InstanceAccess : public Ingen::LV2Features::Feature
const char* uri() const { return "http://lv2plug.in/ns/ext/instance-access"; }
SPtr<LV2_Feature> feature(World* world, Node* node) {
+ if (!world->engine()) {
+ return SPtr<LV2_Feature>();
+ }
+
Node* store_node = world->store()->get(node->path());
if (!store_node) {
return SPtr<LV2_Feature>();
}
- LilvInstance* instance = store_node->instance();
+ LilvInstance* instance = world->engine()->block_instance(store_node);
if (!instance) {
return SPtr<LV2_Feature>();
}