summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Factories
diff options
context:
space:
mode:
authorsr55 <[email protected]>2014-09-15 18:01:28 +0000
committersr55 <[email protected]>2014-09-15 18:01:28 +0000
commit82482ccc3d334e23c3b635ddee7162fb15dab5fa (patch)
treeb262fd1c9ef5e15a688de09d59fff7c429875cdc /win/CS/HandBrake.ApplicationServices/Factories
parent4dda09df6d7d337e04f816c9add2ca75ee169c18 (diff)
WinGui: Fixes to Plist Importer. Thanks to Taihei
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6405 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Factories')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs b/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs
index d8014aeab..780dc9825 100644
--- a/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs
+++ b/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs
@@ -271,7 +271,7 @@ namespace HandBrake.ApplicationServices.Factories
preset.Task.H265Profile = EnumHelper<x265Profile>.GetValue(kvp.Value, true);
break;
case "x265Tune":
- preset.Task.X265Tune = EnumHelper<x265Profile>.GetValue(kvp.Value, true);
+ preset.Task.X265Tune = EnumHelper<x265Tune>.GetValue(kvp.Value, true);
break;
case "x265Preset":
preset.Task.X265Preset = EnumHelper<x265Preset>.GetValue(kvp.Value, true);
@@ -429,7 +429,7 @@ namespace HandBrake.ApplicationServices.Factories
switch (item.Key)
{
case "AudioBitrate":
- track.Bitrate = item.Value;
+ track.Bitrate = int.Parse(item.Value);
break;
case "AudioEncoder":
track.Encoder = Converters.GetAudioEncoder(item.Value.Trim());
@@ -447,7 +447,7 @@ namespace HandBrake.ApplicationServices.Factories
track.DRC = item.Value;
break;
case "AudioTrackGainSlider":
- track.Gain = item.Value;
+ track.Gain = (int)item.Value;
break;
}
}