From 3241e3e43190c5fe3738cdf1abce34045c1143b8 Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 1 Jan 2019 15:15:09 +0000 Subject: [PATCH] WinGui: Fix erroneous log message error about invalid x264 preset when not using an x264 encoder. --- win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 5 +++++ 1 file changed, 5 insertions(+) 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 /// 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; -- 2.40.0