summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-09-01 20:07:02 +0000
committersr55 <[email protected]>2012-09-01 20:07:02 +0000
commitc387255346f64661db1119b644c88311db67ba57 (patch)
treef71bdd56ab5c0c211bac6b486df3dbd3df9a1ddc /win/CS
parent5fcef814d002f988699dfbde188d706f52f62082 (diff)
WinGui: Fix culture issue with the framerate. Any non round number selection would fail.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4926 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs2
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
index 2bd04a93f..db858c9f0 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
@@ -470,7 +470,7 @@ namespace HandBrake.ApplicationServices.Utilities
query += " -T ";
if (task.Framerate.HasValue)
- query += string.Format(" -r {0}", task.Framerate);
+ query += string.Format(" -r {0}", task.Framerate.Value.ToString(CultureInfo.InvariantCulture));
switch (task.FramerateMode)
{
diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
index 8468f26da..b14e09ff4 100644
--- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs
@@ -322,7 +322,7 @@ namespace HandBrakeWPF.ViewModels
{
this.IsPeakFramerate = true;
}
- this.Task.Framerate = double.Parse(value);
+ this.Task.Framerate = double.Parse(value, CultureInfo.InvariantCulture);
}
this.NotifyOfPropertyChange(() => this.SelectedFramerate);