diff options
author | sr55 <[email protected]> | 2011-11-04 22:56:03 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-11-04 22:56:03 +0000 |
commit | ed81068f87cbee3d68425e46178ec6dfae6b955e (patch) | |
tree | e238263ae560983e382ab8d9f58489bb56422ed8 /win/CS/HandBrake.ApplicationServices | |
parent | d33f8b8d1335adb8d6ce381926242afef74f36ac (diff) |
WinGui: Use Invariant culture in the Status Parser.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4339 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Parsing/Parser.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Parsing/Parser.cs b/win/CS/HandBrake.ApplicationServices/Parsing/Parser.cs index e46afea28..413dda62a 100644 --- a/win/CS/HandBrake.ApplicationServices/Parsing/Parser.cs +++ b/win/CS/HandBrake.ApplicationServices/Parsing/Parser.cs @@ -135,7 +135,6 @@ namespace HandBrake.ApplicationServices.Parsing /// </summary>
public void ReadEncodeStatus()
{
- CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
string tmp = base.ReadLine();
Match m = Regex.Match(tmp, @"^Encoding: task ([0-9]*) of ([0-9]*), ([0-9]*\.[0-9]*) %( \(([0-9]*\.[0-9]*) fps, avg ([0-9]*\.[0-9]*) fps, ETA ([0-9]{2})h([0-9]{2})m([0-9]{2})s\))?");
@@ -143,9 +142,9 @@ namespace HandBrake.ApplicationServices.Parsing {
int currentTask = int.Parse(m.Groups[1].Value);
int totalTasks = int.Parse(m.Groups[2].Value);
- float percent = float.Parse(m.Groups[3].Value, culture);
- float currentFps = m.Groups[5].Value == string.Empty ? 0.0F : float.Parse(m.Groups[5].Value, culture);
- float avgFps = m.Groups[6].Value == string.Empty ? 0.0F : float.Parse(m.Groups[6].Value, culture);
+ float percent = float.Parse(m.Groups[3].Value, CultureInfo.InvariantCulture);
+ float currentFps = m.Groups[5].Value == string.Empty ? 0.0F : float.Parse(m.Groups[5].Value, CultureInfo.InvariantCulture);
+ float avgFps = m.Groups[6].Value == string.Empty ? 0.0F : float.Parse(m.Groups[6].Value, CultureInfo.InvariantCulture);
string remaining = string.Empty;
if (m.Groups[7].Value != string.Empty)
{
|