diff options
Diffstat (limited to 'win/C#/Functions/PresetLoader.cs')
-rw-r--r-- | win/C#/Functions/PresetLoader.cs | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/win/C#/Functions/PresetLoader.cs b/win/C#/Functions/PresetLoader.cs index 342eb5e5d..82d3b9b8e 100644 --- a/win/C#/Functions/PresetLoader.cs +++ b/win/C#/Functions/PresetLoader.cs @@ -222,7 +222,24 @@ namespace Handbrake.Functions mainWindow.drp_videoFramerate.SelectedIndex = 0;
}
- mainWindow.checkMaximumFramerate.Checked = presetQuery.FramerateMode == FramerateMode.PFR;
+
+ if (presetQuery.Framerate != null)
+ {
+ // Constant or Peak Framerate for a set framerate.
+
+ if (presetQuery.FramerateMode == FramerateMode.PFR)
+ mainWindow.radio_peakAndVariable.Checked = true;
+ else
+ mainWindow.radio_constantFramerate.Checked = true;
+ }
+ else
+ {
+ // Constant or Variable Framerate for Same as Source.
+ if (presetQuery.FramerateMode == FramerateMode.VFR)
+ mainWindow.radio_peakAndVariable.Checked = true;
+ else
+ mainWindow.radio_constantFramerate.Checked = true;
+ }
mainWindow.check_turbo.CheckState = presetQuery.TurboFirstPass ? CheckState.Checked : CheckState.Unchecked;
|