summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/QueryParser.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-01-03 22:46:52 +0000
committersr55 <[email protected]>2009-01-03 22:46:52 +0000
commit7c7ee204435c13146895355b545d313c1cc7a707 (patch)
tree013c6af3fb9801ddfc112f7561318b3e65c64430 /win/C#/Functions/QueryParser.cs
parent0b30a330672919074117c371de7d1fee4ff5cbbc (diff)
WinGui:
- Fixes some bugs/issues with the Queue Windows / Main Window Queue/Encoding tie-in git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2057 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/QueryParser.cs')
-rw-r--r--win/C#/Functions/QueryParser.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/win/C#/Functions/QueryParser.cs b/win/C#/Functions/QueryParser.cs
index 32179d8f5..759a58da1 100644
--- a/win/C#/Functions/QueryParser.cs
+++ b/win/C#/Functions/QueryParser.cs
@@ -9,11 +9,13 @@ using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
+using System.Globalization;
namespace Handbrake.Functions
{
class QueryParser
{
+ static readonly private CultureInfo Culture = new CultureInfo("en-US", false);
// All the Main Window GUI options
#region Varibles
@@ -1022,7 +1024,7 @@ namespace Handbrake.Functions
double qConvert = 0;
if (videoQuality.Success != false)
{
- qConvert = double.Parse(videoQuality.ToString().Replace("-q ", ""), Functions.Encode.Culture) * 100;
+ qConvert = double.Parse(videoQuality.ToString().Replace("-q ", ""), Culture) * 100;
qConvert = System.Math.Ceiling(qConvert);
thisQuery.q_videoQuality = int.Parse(qConvert.ToString());
}