From c387255346f64661db1119b644c88311db67ba57 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 1 Sep 2012 20:07:02 +0000 Subject: 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 --- win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs | 2 +- win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'win/CS') 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); -- cgit v1.2.3