summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-11-04 23:02:19 +0000
committersr55 <[email protected]>2011-11-04 23:02:19 +0000
commit4ec40322ea7ac15f645a6a056da99b43d6d2ac12 (patch)
treee908d1461f876d1c2ef984b3b9a30f4a344d2f0f /win/CS/HandBrake.ApplicationServices
parented81068f87cbee3d68425e46178ec6dfae6b955e (diff)
WinGui: Several more culture issue fixes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4340 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Parsing/Title.cs9
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs7
2 files changed, 5 insertions, 11 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs b/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
index 362a86a7e..6b3d517c9 100644
--- a/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
+++ b/win/CS/HandBrake.ApplicationServices/Parsing/Title.cs
@@ -22,11 +22,6 @@ namespace HandBrake.ApplicationServices.Parsing
public class Title
{
/// <summary>
- /// The Culture Info
- /// </summary>
- private static readonly CultureInfo Culture = new CultureInfo("en-US", false);
-
- /// <summary>
/// The User Setting Service
/// </summary>
private static IUserSettingService userSettingService = ServiceManager.UserSettingService;
@@ -193,8 +188,8 @@ namespace HandBrake.ApplicationServices.Parsing
{
thisTitle.Resolution = new Size(int.Parse(m.Groups[1].Value), int.Parse(m.Groups[2].Value));
thisTitle.ParVal = new Size(int.Parse(m.Groups[3].Value), int.Parse(m.Groups[4].Value));
- thisTitle.AspectRatio = float.Parse(m.Groups[5].Value, Culture);
- thisTitle.Fps = float.Parse(m.Groups[6].Value, Culture);
+ thisTitle.AspectRatio = float.Parse(m.Groups[5].Value, CultureInfo.InvariantCulture);
+ thisTitle.Fps = float.Parse(m.Groups[6].Value, CultureInfo.InvariantCulture);
}
// Get autocrop region for this title
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
index 9835603cd..07da56ec0 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
@@ -306,17 +306,16 @@ namespace HandBrake.ApplicationServices.Utilities
{
case VideoEncoder.FFMpeg:
value = 31 - (task.Quality.Value - 1);
- query += string.Format(" -q {0}", value.ToString(new CultureInfo("en-US")));
+ query += string.Format(" -q {0}", value.ToString(CultureInfo.InvariantCulture));
break;
case VideoEncoder.X264:
- CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
value = 51 - (task.Quality.Value * x264CqStep);
value = Math.Round(value, 2);
- query += string.Format(" -q {0}", value.ToString(culture));
+ query += string.Format(" -q {0}", value.ToString(CultureInfo.InvariantCulture));
break;
case VideoEncoder.Theora:
value = task.Quality.Value;
- query += string.Format(" -q {0}", value.ToString(new CultureInfo("en-US")));
+ query += string.Format(" -q {0}", value.ToString(CultureInfo.InvariantCulture));
break;
}
break;