]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix culture issue with the framerate. Any non round number selection would...
authorsr55 <sr55.hb@outlook.com>
Sat, 1 Sep 2012 20:07:02 +0000 (20:07 +0000)
committersr55 <sr55.hb@outlook.com>
Sat, 1 Sep 2012 20:07:02 +0000 (20:07 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4926 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs

index 2bd04a93fce5caf30046e157caea58142e036311..db858c9f0544ebedf9436a4274a72a3bc03afd3a 100644 (file)
@@ -470,7 +470,7 @@ namespace HandBrake.ApplicationServices.Utilities
                 query += " -T ";\r
 \r
             if (task.Framerate.HasValue)\r
-                query += string.Format(" -r {0}", task.Framerate);\r
+                query += string.Format(" -r {0}", task.Framerate.Value.ToString(CultureInfo.InvariantCulture));\r
 \r
             switch (task.FramerateMode)\r
             {\r
index 8468f26da6640740ffdaa5ee7f62786c2f0b77e9..b14e09ff493df79316e5361ed8ab531913d18330 100644 (file)
@@ -322,7 +322,7 @@ namespace HandBrakeWPF.ViewModels
                     {\r
                         this.IsPeakFramerate = true;\r
                     }\r
-                    this.Task.Framerate = double.Parse(value);\r
+                    this.Task.Framerate = double.Parse(value, CultureInfo.InvariantCulture);\r
                 }\r
 \r
                 this.NotifyOfPropertyChange(() => this.SelectedFramerate);\r