diff options
author | sr55 <[email protected]> | 2014-11-01 21:16:59 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2014-11-01 21:16:59 +0000 |
commit | 356186fbff2db76609a182de4460b1466b5f7878 (patch) | |
tree | d5ce134b64ef220b2fbe3a2881bf165c1f124b1f /win/CS | |
parent | eeefdc11a0d5fbe41f100f7592e28c1b1d9704a8 (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')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Model/Preset.cs | 8 |
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;
|