summaryrefslogtreecommitdiff
path: root/libs/ardour/audio_unit.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-04-24 18:15:07 +0200
committerRobin Gareus <robin@gareus.org>2018-04-24 18:15:31 +0200
commit9bf40bde3aed831791108bfccc4b1e10b071afdc (patch)
treeb71ae70b3f002c8f41716a3660d1ffeaacfb7800 /libs/ardour/audio_unit.cc
parentffd88553919dc007eeac3a7809f0d23447eda7e6 (diff)
Use URIs to identify plugin-presets
This fixes duplicate AU presets when adding a new preset. Presets are kept in a std::map<URI,...> adding a new presets uses the file-URI as ID. Loaded presets needs to have the same URI.
Diffstat (limited to 'libs/ardour/audio_unit.cc')
-rw-r--r--libs/ardour/audio_unit.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc
index 373add621b..b6beacad84 100644
--- a/libs/ardour/audio_unit.cc
+++ b/libs/ardour/audio_unit.cc
@@ -2555,7 +2555,7 @@ AUPlugin::find_presets ()
*/
if (check_and_get_preset_name (get_comp()->Comp(), path, preset_name)) {
- user_preset_map[preset_name] = path;
+ user_preset_map[preset_name] = "file:///" + path;
DEBUG_TRACE (DEBUG::AudioUnits, string_compose("AU Preset File: %1 > %2\n", preset_name, path));
} else {
DEBUG_TRACE (DEBUG::AudioUnits, string_compose("AU INVALID Preset: %1 > %2\n", preset_name, path));