From 78052b50b43c2cc3dea5690b95ad560a5ef5189f Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 1 Mar 2012 19:19:23 +0000 Subject: WinGui: Another attempt to fix the SampleRate culture bug. Missed a few spots in the last checkin. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4480 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/Controls/AudioPanel.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'win/CS/Controls') diff --git a/win/CS/Controls/AudioPanel.cs b/win/CS/Controls/AudioPanel.cs index 2218bcbe9..80d26f46c 100644 --- a/win/CS/Controls/AudioPanel.cs +++ b/win/CS/Controls/AudioPanel.cs @@ -12,6 +12,7 @@ namespace Handbrake.Controls using System.Collections.Specialized; using System.ComponentModel; using System.Drawing; + using System.Globalization; using System.Linq; using System.Windows.Forms; @@ -366,7 +367,7 @@ namespace Handbrake.Controls case "drp_audioSample": double samplerate; - double.TryParse(drp_audioSample.Text, out samplerate); + double.TryParse(drp_audioSample.Text, NumberStyles.Any, CultureInfo.InvariantCulture, out samplerate); track.SampleRate = samplerate; break; case "drp_audioBitrate": @@ -443,7 +444,7 @@ namespace Handbrake.Controls double samplerate; int.TryParse(drp_audioBitrate.Text, out bitrate); - double.TryParse(drp_audioSample.Text, out samplerate); + double.TryParse(drp_audioSample.Text, NumberStyles.Any, CultureInfo.InvariantCulture, out samplerate); // Create the Model AudioTrack track = new AudioTrack -- cgit v1.2.3