]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix erroneous log message error about invalid x264 preset when not using...
authorsr55 <sr55.hb@outlook.com>
Tue, 1 Jan 2019 15:15:09 +0000 (15:15 +0000)
committersr55 <sr55.hb@outlook.com>
Tue, 1 Jan 2019 15:15:09 +0000 (15:15 +0000)
win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs

index 03863bd1e56dc20e21deabe809e32f0c09dd2a67..f316395f97b4e3b97f653bf4aeb6a2449bc748da 100644 (file)
@@ -1253,6 +1253,11 @@ namespace HandBrakeWPF.ViewModels
         /// </returns>\r
         private string GetActualx264Query()\r
         {\r
+            if (this.SelectedVideoEncoder != VideoEncoder.X264 && this.SelectedVideoEncoder != VideoEncoder.X264_10)\r
+            {\r
+                return string.Empty;\r
+            }\r
+\r
             string preset = this.VideoPreset != null ? this.VideoPreset.ShortName : string.Empty;\r
             string profile = this.VideoProfile != null ? this.VideoProfile.ShortName : string.Empty;\r
 \r