diff options
author | David Robillard <d@drobilla.net> | 2017-03-26 12:25:48 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-03-26 17:02:09 +0200 |
commit | cfb016163227560932044b73407ae9dafa54b4ba (patch) | |
tree | c510f0535616bfe776b80021478c5c0be607cec9 /ingen/InstanceAccess.hpp | |
parent | d70ddd35cc03b35d3b765079d6039fef7a2a19fa (diff) | |
download | ingen-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.hpp | 6 |
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>(); } |