diff options
author | David Robillard <d@drobilla.net> | 2015-03-07 14:54:03 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-03-07 14:54:03 -0500 |
commit | de078a04e23eae197565d231ea35362b5a7ee40e (patch) | |
tree | 4b92cc88c5c5d17df6724ea9d21f94cf24327fd6 /gtk2_ardour/lv2_plugin_ui.cc | |
parent | 0cb096a9782bd13188e7add156af0a4c5e846e86 (diff) |
Fix LV2 preset deletion and clash between plugins.
Before this, LV2 preset deletion in Ardour was doubly broken: the wrong file
was being removed, and removing the correct file would only result in a broken
preset. This change uses a new version of Lilv which has a more sophisticated
mechanism for preset deletion.
Also, fix "clashing" presets saved with the same name for different plugins, by
prefixing the plugin name to the bundle (this is now a recommendation in the
LV2 preset specification).
Diffstat (limited to 'gtk2_ardour/lv2_plugin_ui.cc')
-rw-r--r-- | gtk2_ardour/lv2_plugin_ui.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index 8e57eeed60..eb22a74e82 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -285,7 +285,7 @@ LV2PluginUI::lv2ui_instantiate(const std::string& title) const LilvUI* ui = (const LilvUI*)_lv2->c_ui(); const LilvNode* bundle = lilv_ui_get_bundle_uri(ui); const LilvNode* binary = lilv_ui_get_binary_uri(ui); -#ifdef HAVE_LILV_0_21_1 +#ifdef HAVE_LILV_0_21_3 char* ui_bundle_path = lilv_file_uri_parse(lilv_node_as_uri(bundle), NULL); char* ui_binary_path = lilv_file_uri_parse(lilv_node_as_uri(binary), NULL); #else |