summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-01-07 18:55:26 +0000
committersr55 <[email protected]>2012-01-07 18:55:26 +0000
commit2fcd31e9ef0795d6d3a0c0201ba2e7650d0c4909 (patch)
tree4b39dcee89139608bd3a01a9fffe803fd3bf5dfd /win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
parent10537c3510c8c492e420a2b6c7b628584aaa5d8d (diff)
WinGui: Control over automatic passthru options on the Audio Panel.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4401 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services/PresetService.cs')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/PresetService.cs14
1 files changed, 8 insertions, 6 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
index 30487f15c..5672838e8 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
@@ -3,6 +3,9 @@
Homepage: <http://handbrake.fr>.
It may be used under the terms of the GNU General Public License. */
+using HandBrake.ApplicationServices.Model.Encoding;
+using HandBrake.ApplicationServices.Utilities;
+
namespace HandBrake.ApplicationServices.Services
{
using System;
@@ -290,11 +293,7 @@ namespace HandBrake.ApplicationServices.Services
Regex r = new Regex("(: )"); // Split on hyphens.
string[] presetName = r.Split(line);
- bool pic = false;
- if (presetName[2].Contains("crop"))
- {
- pic = true;
- }
+ bool pic = presetName[2].Contains("crop");
Preset newPreset = new Preset
{
@@ -304,9 +303,12 @@ namespace HandBrake.ApplicationServices.Services
Version = this.userSettingService.GetUserSetting<string>(ASUserSettingConstants.HandBrakeVersion),
CropSettings = pic,
Description = string.Empty, // Maybe one day we will populate this.
- IsBuildIn = true
+ IsBuildIn = true,
+ Task = QueryParserUtility.Parse(presetName[2])
};
+ newPreset.AudioPassthruSettings = new AllowedPassthru(false); // We don't want to override the built-in preset
+
if (newPreset.Name == "Normal")
{
newPreset.IsDefault = true;