summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-01-01 15:15:09 +0000
committersr55 <[email protected]>2019-01-01 15:15:44 +0000
commite80894ccb4b71f1ba2ee0122aa2b20aad0d827fc (patch)
tree10bceab83ab0146ffa3d86bb9f75749951b906e4
parent959ca5ec8f6b0a28b66838c6190b5efd54fce0ed (diff)
WinGui: Fix erroneous log message error about invalid x264 preset when not using an x264 encoder.
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
index 03863bd1e..f316395f9 100644
--- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
@@ -1253,6 +1253,11 @@ namespace HandBrakeWPF.ViewModels
/// </returns>
private string GetActualx264Query()
{
+ if (this.SelectedVideoEncoder != VideoEncoder.X264 && this.SelectedVideoEncoder != VideoEncoder.X264_10)
+ {
+ return string.Empty;
+ }
+
string preset = this.VideoPreset != null ? this.VideoPreset.ShortName : string.Empty;
string profile = this.VideoProfile != null ? this.VideoProfile.ShortName : string.Empty;