diff options
author | sr55 <[email protected]> | 2009-08-10 19:59:27 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-08-10 19:59:27 +0000 |
commit | fd88b574a2d980491a693e6d8747669a8507a031 (patch) | |
tree | f7b40af800e0a046bcfaea195ae1da9117068b50 /win/C#/Functions/QueryGenerator.cs | |
parent | 79e381141a579d027f8f37aa992b9c2a710dd20c (diff) |
WinGui:
- Changing the CQ step for the quality slider when using x264 no longer requires a program restart.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2760 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/QueryGenerator.cs')
-rw-r--r-- | win/C#/Functions/QueryGenerator.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/win/C#/Functions/QueryGenerator.cs b/win/C#/Functions/QueryGenerator.cs index 42b962541..b67dfa918 100644 --- a/win/C#/Functions/QueryGenerator.cs +++ b/win/C#/Functions/QueryGenerator.cs @@ -192,6 +192,9 @@ namespace Handbrake.Functions // Video Quality Setting
if (mainWindow.radio_cq.Checked)
{
+ double cqStep;
+ double.TryParse(Properties.Settings.Default.x264cqstep, out cqStep);
+
double value;
switch (mainWindow.drp_videoEncoder.Text)
{
@@ -201,7 +204,7 @@ namespace Handbrake.Functions break;
case "H.264 (x264)":
CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
- value = 51 - mainWindow.slider_videoQuality.Value * Properties.Settings.Default.x264cqstep;
+ value = 51 - mainWindow.slider_videoQuality.Value * cqStep;
value = Math.Round(value, 2);
query += " -q " + value.ToString(culture);
break;
|