summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-05-07 19:43:42 +0100
committersr55 <[email protected]>2019-05-07 19:43:42 +0100
commit465d9f76d97b973afeece3f87677be0fc8ff9fcd (patch)
tree432b740fa21276adab0ae3304f8f0f67c6d558b5 /win/CS/HandBrakeWPF/ViewModels
parentfaf3b92d86d31d261f7017fd311720286cd61dca (diff)
WinGui: Fix fast decode tune with x264 vs x265. #2083
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
index 3280b9424..834d4a367 100644
--- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
@@ -610,6 +610,8 @@ namespace HandBrakeWPF.ViewModels
}
}
+ public bool DisplayFastDecode { get; set; }
+
/// <summary>
/// Gets or sets a value indicating whether display level control.
/// </summary>
@@ -661,10 +663,6 @@ namespace HandBrakeWPF.ViewModels
}
set
{
- if (value.Equals(this.fastDecode))
- {
- return;
- }
this.fastDecode = value;
// Update the encode task
@@ -1366,10 +1364,12 @@ namespace HandBrakeWPF.ViewModels
this.VideoTunes.Add(VideoTune.None);
foreach (var item in encoder.Tunes)
{
- if (item != VideoTune.FastDecode.ShortName)
+ if (item == VideoTune.FastDecode.ShortName && (selectedEncoder == VideoEncoder.X264 || selectedEncoder == VideoEncoder.X264_10))
{
- this.VideoTunes.Add(new VideoTune(item, item));
+ continue;
}
+
+ this.VideoTunes.Add(new VideoTune(item, item));
}
this.FastDecode = false;
this.VideoTune = VideoTune.None;
@@ -1443,6 +1443,9 @@ namespace HandBrakeWPF.ViewModels
this.SelectedVideoEncoder == VideoEncoder.VceH264 || this.SelectedVideoEncoder == VideoEncoder.VceH265 ||
this.SelectedVideoEncoder == VideoEncoder.NvencH264 || this.SelectedVideoEncoder == VideoEncoder.NvencH265;
+ this.DisplayFastDecode = this.SelectedVideoEncoder == VideoEncoder.X264 || this.SelectedVideoEncoder == VideoEncoder.X264_10;
+ this.NotifyOfPropertyChange(() => this.DisplayFastDecode);
+
this.DisplayProfileControl = this.SelectedVideoEncoder == VideoEncoder.X264
|| this.SelectedVideoEncoder == VideoEncoder.X264_10
|| this.SelectedVideoEncoder == VideoEncoder.X265