diff options
author | sr55 <[email protected]> | 2011-10-09 16:50:59 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-10-09 16:50:59 +0000 |
commit | 8308b4260755eb6623c9cc03709e5fc3fc1e452d (patch) | |
tree | 112ddcac01b54cb392762d420030dfee178cfa02 /win/CS/Controls | |
parent | 2cf90d9fdf40bed5aa7ba05db92d7b772d0fc975 (diff) |
WinGui: Fix a bug in the Audio Panel. Unable to parse a Mixdown enumeration.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4277 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Controls')
-rw-r--r-- | win/CS/Controls/AudioPanel.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/win/CS/Controls/AudioPanel.cs b/win/CS/Controls/AudioPanel.cs index 4a89d8264..af3e96ba9 100644 --- a/win/CS/Controls/AudioPanel.cs +++ b/win/CS/Controls/AudioPanel.cs @@ -33,7 +33,7 @@ namespace Handbrake.Controls {
#region Private Variables
private readonly BindingList<AudioTrack> audioTracks = new BindingList<AudioTrack>();
- private const string Passthru = "Passthru";
+ private const string None = "None";
private AdvancedAudio advancedAudio = new AdvancedAudio();
/// <summary>
/// The User Setting Service.
@@ -287,7 +287,7 @@ namespace Handbrake.Controls SetMixDown(EnumHelper<Mixdown>.GetDisplay(track.MixDown));
// Configure the widgets with values
- if (drp_audioEncoder.Text.Contains(Passthru))
+ if (drp_audioEncoder.Text.Contains("Passthru"))
{
drp_audioMix.Enabled = drp_audioBitrate.Enabled = drp_audioSample.Enabled = btn_AdvancedAudio.Enabled = false;
track.Gain = 0;
@@ -851,7 +851,7 @@ namespace Handbrake.Controls break;
}
- if (drp_audioEncoder.Text.Contains(Passthru))
+ if (drp_audioEncoder.Text.Contains("Passthru"))
{
drp_audioBitrate.Items.Add("Auto");
defaultRate = "Auto";
@@ -909,26 +909,26 @@ namespace Handbrake.Controls drp_audioMix.Items.Add("Dolby Surround");
drp_audioMix.Items.Add("Dolby Pro Logic II");
drp_audioMix.Items.Add("6 Channel Discrete");
- drp_audioMix.Items.Add(Passthru);
+ drp_audioMix.Items.Add(None);
switch (drp_audioEncoder.Text)
{
case "AAC (faac)":
case "AAC (ffmpeg)":
- drp_audioMix.Items.Remove(Passthru);
+ drp_audioMix.Items.Remove(None);
drp_audioMix.SelectedItem = currentMixdown ?? "Dolby Pro Logic II";
break;
case "MP3 (lame)":
drp_audioMix.Items.Remove("6 Channel Discrete");
- drp_audioMix.Items.Remove(Passthru);
+ drp_audioMix.Items.Remove(None);
drp_audioMix.SelectedItem = currentMixdown ?? "Dolby Pro Logic II";
break;
case "Vorbis (vorbis)":
- drp_audioMix.Items.Remove(Passthru);
+ drp_audioMix.Items.Remove(None);
drp_audioMix.SelectedItem = currentMixdown ?? "Dolby Pro Logic II";
break;
case "AC3 (ffmpeg)":
- drp_audioMix.Items.Remove(Passthru);
+ drp_audioMix.Items.Remove(None);
drp_audioMix.SelectedItem = currentMixdown ?? "Dolby Pro Logic II";
break;
case "AC3 Passthru":
@@ -936,7 +936,7 @@ namespace Handbrake.Controls case "DTS-HD Passthru":
case "AAC Passthru":
case "MP3 Passthru":
- drp_audioMix.SelectedItem = Passthru;
+ drp_audioMix.SelectedItem = None;
break;
}
|