summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-04-23 14:33:37 +0000
committersr55 <[email protected]>2011-04-23 14:33:37 +0000
commitac7beb619fbf6cdc0d5b28fbacb4baa37b59c56c (patch)
tree24bd66db3c4914d00a1436d4b62310835e1a30a9 /win/CS
parent4b6453fbe090c32e379b63b42baaf079f01d437e (diff)
WinGui:
- Another fix to make sure a valid mixdown is set when changing encoders. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3953 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/Controls/AudioPanel.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/win/CS/Controls/AudioPanel.cs b/win/CS/Controls/AudioPanel.cs
index e33cacbb6..736789f37 100644
--- a/win/CS/Controls/AudioPanel.cs
+++ b/win/CS/Controls/AudioPanel.cs
@@ -286,6 +286,15 @@ namespace Handbrake.Controls
// Update an item in the Audio list if required.
track.Encoder = EnumHelper<AudioEncoder>.GetValue(drp_audioEncoder.Text);
+
+ // Just make sure we don't have the wrong mixdown set, if we do fix it.
+ if (track.MixDown == HandBrake.ApplicationServices.Model.Encoding.Mixdown.Ac3Passthrough || track.MixDown == HandBrake.ApplicationServices.Model.Encoding.Mixdown.DtsPassthrough)
+ {
+ if (track.Encoder != AudioEncoder.Ac3Passthrough && track.Encoder != AudioEncoder.DtsPassthrough)
+ {
+ drp_audioMix.SelectedItem = "Dolby Pro Logic II";
+ }
+ }
break;
case "drp_audioMix":
SetBitrate();