diff options
author | Robin Gareus <robin@gareus.org> | 2016-01-09 00:57:53 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-01-09 00:57:53 +0100 |
commit | ba450aaeaa1f893e7100ba47b0e538671d4f6220 (patch) | |
tree | 0d74a890bef1aa8f8da408145c2cb96359a29123 /libs/ardour/lv2_plugin.cc | |
parent | ce7d18bc16352e57a6c150ba65d1267c3c6ab3c3 (diff) |
Leave a ToDo note: distinguish LV2 user and factory presets.
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 4e8a971dfc..e405b1a1cd 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1109,11 +1109,13 @@ LV2Plugin::find_presets() const LilvNode* preset = lilv_nodes_get(presets, i); lilv_world_load_resource(_world.world, preset); LilvNode* name = get_value(_world.world, preset, rdfs_label); + bool userpreset = true; // TODO if (name) { _presets.insert(std::make_pair(lilv_node_as_string(preset), Plugin::PresetRecord( lilv_node_as_string(preset), - lilv_node_as_string(name)))); + lilv_node_as_string(name), + userpreset))); lilv_node_free(name); } else { warning << string_compose( @@ -2649,8 +2651,9 @@ LV2PluginInfo::get_presets(Session&) const LilvNode* preset = lilv_nodes_get(presets, i); lilv_world_load_resource(_world.world, preset); LilvNode* name = get_value(_world.world, preset, rdfs_label); + bool userpreset = true; // TODO if (name) { - p.push_back (Plugin::PresetRecord(lilv_node_as_string(preset), lilv_node_as_string(name))); + p.push_back (Plugin::PresetRecord (lilv_node_as_string(preset), lilv_node_as_string(name), userpreset)); lilv_node_free(name); } } |