summaryrefslogtreecommitdiffstats
path: root/win/CS/Functions/PresetLoader.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/Functions/PresetLoader.cs')
-rw-r--r--win/CS/Functions/PresetLoader.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/Functions/PresetLoader.cs b/win/CS/Functions/PresetLoader.cs
index 5da368ac1..47029c935 100644
--- a/win/CS/Functions/PresetLoader.cs
+++ b/win/CS/Functions/PresetLoader.cs
@@ -233,14 +233,14 @@ namespace Handbrake.Functions
}
// Quality
- if (presetQuery.Quality != null)
+ if (presetQuery.VideoEncodeRateType == VideoEncodeRateType.ConstantQuality)
{
mainWindow.radio_cq.Checked = true;
mainWindow.slider_videoQuality.Value = QualityToSliderValue(presetQuery.VideoEncoder, presetQuery.Quality);
mainWindow.check_2PassEncode.CheckState = CheckState.Unchecked;
mainWindow.check_turbo.CheckState = CheckState.Unchecked;
}
- else if (presetQuery.VideoBitrate != null)
+ else if (presetQuery.VideoEncodeRateType == VideoEncodeRateType.AverageBitrate)
{
mainWindow.radio_avgBitrate.Checked = true;
mainWindow.text_bitrate.Text = presetQuery.VideoBitrate.ToString();