diff options
author | sr55 <[email protected]> | 2019-01-01 15:15:09 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2019-01-01 15:15:09 +0000 |
commit | 3241e3e43190c5fe3738cdf1abce34045c1143b8 (patch) | |
tree | d0215ca564f08bf9a3a2fa84b2be44c1462e354a /win/CS/HandBrakeWPF/ViewModels | |
parent | 8a3f52225f3f579f09adbffba068cf6d7615215a (diff) |
WinGui: Fix erroneous log message error about invalid x264 preset when not using an x264 encoder.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 5 |
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;
|