diff options
author | Scott <[email protected]> | 2015-12-27 20:16:31 +0000 |
---|---|---|
committer | Scott <[email protected]> | 2015-12-27 20:16:31 +0000 |
commit | 930039b3154fcbf919b77ca0448865467e352896 (patch) | |
tree | 5fe5fa6e5393a9cf315550f16f19f3e353d2fa7d /win/CS/HandBrakeWPF/ViewModels | |
parent | bec07640fe587aeb063868f85072f8edb7211c4b (diff) |
WinGui: Missing changes from previous checking that was fixing queue edit bugs.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs index 53c7c7882..13621e656 100644 --- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs @@ -731,9 +731,7 @@ namespace HandBrakeWPF.ViewModels {
get
{
- VideoTune tune = this.Task.VideoTunes.FirstOrDefault(t => !Equals(t, VideoTune.FastDecode))
- ?? VideoTune.None;
- return tune;
+ return this.videoTune;
}
set
{
@@ -976,6 +974,9 @@ namespace HandBrakeWPF.ViewModels this.NotifyOfPropertyChange(() => this.FastDecode);
this.NotifyOfPropertyChange(() => this.ExtraArguments);
+ this.VideoTune = (task.VideoTunes != null && task.VideoTunes.Any() ? task.VideoTunes.FirstOrDefault(t => !Equals(t, VideoTune.FastDecode)) : this.VideoTunes.FirstOrDefault())
+ ?? VideoTune.None;
+
HBVideoEncoder encoder = HandBrakeEncoderHelpers.VideoEncoders.FirstOrDefault(s => s.ShortName == EnumHelper<VideoEncoder>.GetShortName(this.SelectedVideoEncoder));
if (encoder != null && this.VideoPreset != null)
{
|