summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-03-29 15:57:53 +0000
committersr55 <[email protected]>2015-03-29 15:57:53 +0000
commit168ce686fd837de7fbf20266df31af2ac00c8db1 (patch)
tree1feb3e16046babb4bee15b7554a04ca383e13206 /win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
parent476eb6ccaa4e655c43d85d8111f27451aa0a8f8f (diff)
WinGui: Add TrueHD, Flac and EAC3 Passthru, and EAC3 encoder options. Fixed No Audio Behaviour. Misc other experimental UX/UI code.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7027 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Presets/PresetService.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/PresetService.cs15
1 files changed, 8 insertions, 7 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
index c20af5ddc..c0355a3bf 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
@@ -15,8 +15,6 @@ namespace HandBrakeWPF.Services.Presets
using System.IO;
using System.Linq;
using System.Reflection;
- using System.Text;
- using System.Text.RegularExpressions;
using System.Windows;
using System.Xml.Serialization;
@@ -24,6 +22,7 @@ namespace HandBrakeWPF.Services.Presets
using HandBrake.ApplicationServices.Services.Encode.Model.Models;
using HandBrake.ApplicationServices.Utilities;
+ using HandBrakeWPF.Model.Audio;
using HandBrakeWPF.Services.Interfaces;
using HandBrakeWPF.Services.Presets.Interfaces;
using HandBrakeWPF.Services.Presets.Model;
@@ -37,7 +36,7 @@ namespace HandBrakeWPF.Services.Presets
{
#region Private Variables
- private static readonly int CurrentPresetVersion = 2;
+ private static readonly int CurrentPresetVersion = 3;
/// <summary>
/// User Preset Default Catgory Name
@@ -292,7 +291,9 @@ namespace HandBrakeWPF.Services.Presets
preset.Version = VersionHelper.GetVersion();
preset.UsePictureFilters = true;
preset.IsBuildIn = true; // Older versions did not have this flag so explicitly make sure it is set.
-
+ preset.AudioTrackBehaviours = new AudioBehaviours();
+ preset.AudioTrackBehaviours.SelectedBehaviour = AudioBehaviourModes.FirstMatch;
+
if (preset.Name == "iPod")
{
preset.Task.KeepDisplayAspect = true;
@@ -509,9 +510,9 @@ namespace HandBrakeWPF.Services.Presets
string fileName = RecoverFromCorruptedPresetFile(this.userPresetFile);
this.errorService.ShowMessageBox(
"HandBrake is unable to load your user presets because they are from an older version of HandBrake. Your old presets file has been renamed so that it doesn't get loaded on next launch."
- + Environment.NewLine + Environment.NewLine + "Archived File: " + fileName,
- "Unable to load user presets.",
- MessageBoxButton.OK,
+ + Environment.NewLine + Environment.NewLine + "Archived File: " + fileName,
+ "Unable to load user presets.",
+ MessageBoxButton.OK,
MessageBoxImage.Exclamation);
return;
}