From 1269be58e47ef6a6eaf61ef79144e08ccdffeff2 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 21 Jan 2012 14:14:29 +0000 Subject: WinGui: Another fix to AutoPassthru functionality so that built-in presets still get honoured correctly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4416 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/Controls/AudioPanel.cs | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'win/CS') diff --git a/win/CS/Controls/AudioPanel.cs b/win/CS/Controls/AudioPanel.cs index fe7fab39f..7ce9c318b 100644 --- a/win/CS/Controls/AudioPanel.cs +++ b/win/CS/Controls/AudioPanel.cs @@ -321,7 +321,7 @@ namespace Handbrake.Controls // Correct bad passthru option if (this.IsIncompatiblePassthru(track)) { - AudioEncoder encoder = GetCompatiblePassthru(track); + AudioEncoder encoder = GetCompatiblePassthru(track, false); drp_audioEncoder.SelectedItem = EnumHelper.GetDisplay(encoder); } } @@ -350,7 +350,7 @@ namespace Handbrake.Controls // Correct bad passthru option if (this.IsIncompatiblePassthru(track)) { - AudioEncoder encoder = GetCompatiblePassthru(track); + AudioEncoder encoder = GetCompatiblePassthru(track, false); drp_audioEncoder.SelectedItem = EnumHelper.GetDisplay(encoder); } break; @@ -844,6 +844,12 @@ namespace Handbrake.Controls } } + /// + /// Move to + /// + /// + /// The top. + /// private void MoveTo(bool top) { if (audioList.SelectedRows.Count == 0) return; @@ -1081,13 +1087,15 @@ namespace Handbrake.Controls /// /// The track. /// + /// + /// The use Auto Passthru Options. + /// /// /// AN Audio encoder. /// - private AudioEncoder GetCompatiblePassthru(AudioTrack track) + private AudioEncoder GetCompatiblePassthru(AudioTrack track, bool useAutoPassthruOptions) { - // - if (this.UserSettingService.GetUserSetting(UserSettingConstants.ShowAdvancedAudioPassthruOpts)) + if (useAutoPassthruOptions) { if (track.ScannedTrack.Format.Contains("AC3") && this.check_ac3.Checked) { @@ -1155,7 +1163,7 @@ namespace Handbrake.Controls { if (this.IsIncompatiblePassthru(track)) { - track.Encoder = GetCompatiblePassthru(track); + track.Encoder = GetCompatiblePassthru(track, true); } } } -- cgit v1.2.3