Fix AU preset handling
authorRobin Gareus <robin@gareus.org>
Sat, 1 Dec 2018 04:33:26 +0000 (05:33 +0100)
committerRobin Gareus <robin@gareus.org>
Sat, 1 Dec 2018 04:33:26 +0000 (05:33 +0100)
load_property_list() takes a file-path (not URI). Actually it's not
clear why we've ever used a `file:///` URI internally.

libs/ardour/audio_unit.cc

index 0482ff2bb655e8503ef0226f5316020c52af8b0f..0b68c95dcedcc85089b2ff3b15ad44d86b983d4e 100644 (file)
@@ -2279,7 +2279,7 @@ AUPlugin::do_save_preset (string preset_name)
 
        DEBUG_TRACE (DEBUG::AudioUnits, string_compose("AU Saving Preset to %1\n", user_preset_path));
 
-       return string ("file:///") + user_preset_path;
+       return user_preset_path;
 }
 
 //-----------------------------------------------------------------------------
@@ -2556,7 +2556,7 @@ AUPlugin::find_presets ()
                */
 
                if (check_and_get_preset_name (get_comp()->Comp(), path, preset_name)) {
-                       user_preset_map[preset_name] = "file:///" + path;
+                       user_preset_map[preset_name] = 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));