diff options
Diffstat (limited to 'win/C#/Parsing')
-rw-r--r-- | win/C#/Parsing/Title.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/win/C#/Parsing/Title.cs b/win/C#/Parsing/Title.cs index 05521c027..6f0f6ffc3 100644 --- a/win/C#/Parsing/Title.cs +++ b/win/C#/Parsing/Title.cs @@ -10,6 +10,7 @@ using System.Drawing; using System.IO;
using System.Windows.Forms;
using System.Text.RegularExpressions;
+using System.Globalization;
namespace Handbrake.Parsing
{
@@ -139,6 +140,8 @@ namespace Handbrake.Parsing this.m_duration.Minutes, this.m_duration.Seconds);
}
+ static readonly private CultureInfo Culture = new CultureInfo("en-US", false);
+
public static Title Parse(StringReader output)
{
Title thisTitle = new Title();
@@ -161,7 +164,7 @@ namespace Handbrake.Parsing if (m.Success)
{
thisTitle.m_resolution = new Size(int.Parse(m.Groups[1].Value), int.Parse(m.Groups[2].Value));
- thisTitle.m_aspectRatio = float.Parse(m.Groups[3].Value, Functions.Encode.Culture);
+ thisTitle.m_aspectRatio = float.Parse(m.Groups[3].Value, Culture);
}
// Get autocrop region for this title
|