diff options
author | sr55 <[email protected]> | 2012-03-01 19:19:23 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-03-01 19:19:23 +0000 |
commit | 78052b50b43c2cc3dea5690b95ad560a5ef5189f (patch) | |
tree | fdb86f58e57154c61c6f8faa5453d431790a1265 /win/CS/Controls | |
parent | 2efd8f264113bcd3d8c39a1f408c16cc27100aa7 (diff) |
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
Diffstat (limited to 'win/CS/Controls')
-rw-r--r-- | win/CS/Controls/AudioPanel.cs | 5 |
1 files changed, 3 insertions, 2 deletions
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
|