From: sr55 Date: Tue, 1 Jan 2019 15:15:09 +0000 (+0000) Subject: WinGui: Fix erroneous log message error about invalid x264 preset when not using... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3241e3e43190c5fe3738cdf1abce34045c1143b8;p=handbrake WinGui: Fix erroneous log message error about invalid x264 preset when not using an x264 encoder. --- 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;