]> granicus.if.org Git - handbrake/commitdiff
Fixing the storage of user presets. Need to confirm PresetContainer format.
authorScott <sr55.hb@outlook.com>
Sun, 11 Oct 2015 21:05:16 +0000 (22:05 +0100)
committerScott <sr55.hb@outlook.com>
Fri, 16 Oct 2015 21:30:20 +0000 (22:30 +0100)
win/CS/HandBrakeWPF/Services/Presets/PresetService.cs

index 5707bac27d99da7bbcf9a2200068960dcf7bafe2..763ea8fd1986cb2019d5dbe0d1bace2b4c09460b 100644 (file)
@@ -693,7 +693,9 @@ namespace HandBrakeWPF.Services.Presets
                 using (FileStream strm = new FileStream(this.userPresetFile, FileMode.Create, FileAccess.Write))\r
                 {\r
                     List<Preset> userPresets = this.presets.Where(p => p.IsBuildIn == false).ToList();\r
-                    string presetsJson = JsonConvert.SerializeObject(userPresets, Formatting.Indented, settings);\r
+                    PresetTransportContainer container = JsonPresetFactory.ExportPresets(userPresets, HBConfigurationFactory.Create());\r
+\r
+                    string presetsJson = JsonConvert.SerializeObject(container, Formatting.Indented, settings);\r
 \r
                     using (StreamWriter writer = new StreamWriter(strm))\r
                     {\r