summaryrefslogtreecommitdiff
path: root/libs/ardour/lv2_plugin.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-01-29 02:12:15 +0100
committerRobin Gareus <robin@gareus.org>2015-01-29 02:13:33 +0100
commitc11a7a1bd7ae2d8ec0862eaa61022567dfb8a673 (patch)
tree0e5d9d9645a292896adae69373e5aa553c4cd391 /libs/ardour/lv2_plugin.cc
parenta4e159b1c0af14632786774073ea0319907e1ca8 (diff)
allow bundling of lv2core
Don’t statically initiate the lv2 world, use explicit call after scanning bundles. lilv_world_load_specifications() and lilv_world_load_plugin_classes() are only ever called after lilv_world_load_all(), so we postpone the call to it.
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r--libs/ardour/lv2_plugin.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc
index 9890ab2356..5a97bfa41f 100644
--- a/libs/ardour/lv2_plugin.cc
+++ b/libs/ardour/lv2_plugin.cc
@@ -2287,8 +2287,6 @@ LV2World::LV2World()
: world(lilv_world_new())
, _bundle_checked(false)
{
- lilv_world_load_all(world);
-
atom_AtomPort = lilv_new_uri(world, LV2_ATOM__AtomPort);
atom_Chunk = lilv_new_uri(world, LV2_ATOM__Chunk);
atom_Sequence = lilv_new_uri(world, LV2_ATOM__Sequence);
@@ -2392,6 +2390,7 @@ LV2World::load_bundled_plugins(bool verbose)
lilv_node_free(node);
}
+ lilv_world_load_all(world);
_bundle_checked = true;
}
}