mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
cosmetic change - properly use lilv API
This commit is contained in:
parent
261638a5a0
commit
58f82b52e5
1 changed files with 6 additions and 4 deletions
|
|
@ -1094,10 +1094,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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue