From ac7beb619fbf6cdc0d5b28fbacb4baa37b59c56c Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 23 Apr 2011 14:33:37 +0000 Subject: 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 --- win/CS/Controls/AudioPanel.cs | 9 +++++++++ 1 file changed, 9 insertions(+) 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.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(); -- cgit v1.2.3