summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
authorsr55 <[email protected]>2014-11-01 21:16:59 +0000
committersr55 <[email protected]>2014-11-01 21:16:59 +0000
commit356186fbff2db76609a182de4460b1466b5f7878 (patch)
treed5ce134b64ef220b2fbe3a2881bf165c1f124b1f /win/CS/HandBrake.ApplicationServices
parenteeefdc11a0d5fbe41f100f7592e28c1b1d9704a8 (diff)
WinGui: When updating presets, don't override the picture settings values if SourceMax/Custom
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6493 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Preset.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Preset.cs b/win/CS/HandBrake.ApplicationServices/Model/Preset.cs
index e281e12b6..2bddd75aa 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Preset.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Preset.cs
@@ -121,6 +121,14 @@ namespace HandBrake.ApplicationServices.Model
/// </param>
public void Update(EncodeTask task, AudioBehaviours audioBehaviours, SubtitleBehaviours subtitleBehaviours)
{
+ // Copy over Max Width / Height for the following picture settings modes.
+ if (this.PictureSettingsMode == PresetPictureSettingsMode.Custom
+ || this.PictureSettingsMode == PresetPictureSettingsMode.SourceMaximum)
+ {
+ task.MaxWidth = this.Task.MaxWidth;
+ task.MaxHeight = this.Task.MaxHeight;
+ }
+
this.Task = task;
this.AudioTrackBehaviours = audioBehaviours;
this.SubtitleTrackBehaviours = subtitleBehaviours;