summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-01-11 20:41:08 +0000
committersr55 <[email protected]>2017-01-11 20:41:08 +0000
commit06b07f9eeb31be0554b4a729554ec5dee92794c4 (patch)
tree6bc985e9928a0b14305689d09d07e99573f07b16 /win
parentffe394b2dba73758eae564ae959c6e94b8dce331 (diff)
WinGui: Fix for the Queue Item Tooltip. Would erroneously display "2Pass" for CRF encodes.
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs b/win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs
index f175ec2ad..01265f228 100644
--- a/win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs
+++ b/win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs
@@ -51,7 +51,13 @@ namespace HandBrakeWPF.Converters.Video
string rfqp = task.VideoEncoder == VideoEncoder.X264 || task.VideoEncoder == VideoEncoder.X264_10 || task.VideoEncoder == VideoEncoder.X265
|| task.VideoEncoder == VideoEncoder.X265_10 || task.VideoEncoder == VideoEncoder.X265_12 ? "RF" : "QP";
string quality = task.VideoEncodeRateType == VideoEncodeRateType.ConstantQuality ? task.Quality + rfqp : task.VideoBitrate + " kbps";
- string twoPass = task.TwoPass ? task.TurboFirstPass ? " (2-Pass with Turbo)" : " (2-Pass)" : string.Empty;
+ string twoPass = null;
+
+ if (task.VideoEncodeRateType == VideoEncodeRateType.AverageBitrate)
+ {
+ twoPass = task.TwoPass ? task.TurboFirstPass ? " (2-Pass with Turbo)" : " (2-Pass)" : string.Empty;
+ }
+
return string.Format("{0} - {1}{2}", EnumHelper<VideoEncoder>.GetDisplay(task.VideoEncoder), quality, twoPass);
}