summaryrefslogtreecommitdiff
path: root/libs/ardour/lv2_plugin.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-01-12 17:14:14 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2014-01-13 09:38:24 -0500
commit75e21d3ab48c5b11a32f241d4e9ffd1b6f2c5ad3 (patch)
tree4b693d2f53144af5f6e37a4bb7ac358500f506da /libs/ardour/lv2_plugin.cc
parent39d5ef503456a754e9a1be98b7215625d17a56e3 (diff)
cosmetic change - properly use lilv API
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r--libs/ardour/lv2_plugin.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc
index e6b3c2d56e..f24aa653bb 100644
--- a/libs/ardour/lv2_plugin.cc
+++ b/libs/ardour/lv2_plugin.cc
@@ -1095,10 +1095,12 @@ LV2Plugin::do_save_preset(string name)
lilv_state_free(state);
std::string uri = Glib::filename_to_uri(Glib::build_filename(bundle, file_name));
- LilvNode *node = lilv_new_uri(_world.world, uri.c_str());
- lilv_world_load_bundle(_world.world, node);
- lilv_world_load_resource(_world.world, node);
- lilv_node_free(node);
+ LilvNode *node_bundle = lilv_new_uri(_world.world, Glib::filename_to_uri(Glib::build_filename(bundle, "/")).c_str());
+ LilvNode *node_preset = lilv_new_uri(_world.world, uri.c_str());
+ lilv_world_load_bundle(_world.world, node_bundle);
+ lilv_world_load_resource(_world.world, node_preset);
+ lilv_node_free(node_bundle);
+ lilv_node_free(node_preset);
return uri;
}