]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix for the Queue Item Tooltip. Would erroneously display "2Pass" for CRF...
authorsr55 <sr55.hb@outlook.com>
Wed, 11 Jan 2017 20:41:08 +0000 (20:41 +0000)
committersr55 <sr55.hb@outlook.com>
Wed, 11 Jan 2017 20:41:30 +0000 (20:41 +0000)
win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs

index f175ec2ad16de3be69ac7f7bc79a82d31652b103..01265f228b57992505d9efd02e3f700ab42bd053 100644 (file)
@@ -51,7 +51,13 @@ namespace HandBrakeWPF.Converters.Video
                 string rfqp = task.VideoEncoder == VideoEncoder.X264 || task.VideoEncoder == VideoEncoder.X264_10 || task.VideoEncoder == VideoEncoder.X265 \r
                     || task.VideoEncoder == VideoEncoder.X265_10 || task.VideoEncoder == VideoEncoder.X265_12 ? "RF" : "QP";\r
                 string quality = task.VideoEncodeRateType == VideoEncodeRateType.ConstantQuality ? task.Quality + rfqp : task.VideoBitrate + " kbps";\r
-                string twoPass = task.TwoPass ? task.TurboFirstPass ? " (2-Pass with Turbo)" : " (2-Pass)" : string.Empty;\r
+                string twoPass = null;\r
+\r
+                if (task.VideoEncodeRateType == VideoEncodeRateType.AverageBitrate)\r
+                {\r
+                    twoPass = task.TwoPass ? task.TurboFirstPass ? " (2-Pass with Turbo)" : " (2-Pass)" : string.Empty;\r
+                }\r
+\r
                 return string.Format("{0} - {1}{2}", EnumHelper<VideoEncoder>.GetDisplay(task.VideoEncoder), quality, twoPass); \r
             }\r
 \r