\r
using Caliburn.Micro;\r
\r
- using HandBrake.ApplicationServices.Utilities;\r
using HandBrake.ApplicationServices.Interop;\r
using HandBrake.ApplicationServices.Interop.Model.Encoding;\r
\r
if (value)\r
{\r
this.Task.VideoEncodeRateType = VideoEncodeRateType.ConstantQuality;\r
- this.Task.TwoPass = false;\r
- this.Task.TurboFirstPass = false;\r
- this.Task.VideoBitrate = null;\r
+ this.TwoPass = false;\r
+ this.TurboFirstPass = false;\r
+ this.VideoBitrate = null;\r
this.NotifyOfPropertyChange(() => this.Task);\r
}\r
else\r
\r
this.TwoPass = preset.Task.TwoPass;\r
this.TurboFirstPass = preset.Task.TurboFirstPass;\r
- this.Task.VideoBitrate = preset.Task.VideoBitrate;\r
+\r
+ this.VideoBitrate = preset.Task.VideoEncodeRateType == VideoEncodeRateType.AverageBitrate ? preset.Task.VideoBitrate : null;\r
+ \r
\r
this.NotifyOfPropertyChange(() => this.Task);\r
\r