diff options
author | sr55 <[email protected]> | 2010-09-17 19:39:08 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-09-17 19:39:08 +0000 |
commit | 0afdc858afcca936c3cd92b058eb65525ede9b36 (patch) | |
tree | caa288667ae57c6f923b32ebf7b962d07a4a2884 /win | |
parent | 0c64bb9dddad8913ac7377209fc5795d916ba978 (diff) |
WinGui:
If an Audio track selected is not AC3 or DTS, and AC3 or DTS passthru are selected switch to AAC to prevent bad encodes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3540 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r-- | win/C#/Controls/AudioPanel.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/win/C#/Controls/AudioPanel.cs b/win/C#/Controls/AudioPanel.cs index cca75d41a..9fa9cfde3 100644 --- a/win/C#/Controls/AudioPanel.cs +++ b/win/C#/Controls/AudioPanel.cs @@ -224,7 +224,23 @@ namespace Handbrake.Controls {
case "drp_audioTrack":
if (audioList.Rows.Count != 0 && audioList.SelectedRows.Count != 0)
+ {
audioList.SelectedRows[0].Cells[1].Value = drp_audioTrack.Text;
+
+ // If the track isn't AC3, and the encoder is, change it.
+ if (audioList.SelectedRows[0].Cells[2].Value.ToString().Contains("AC3") && !audioList.SelectedRows[0].Cells[1].Value.ToString().Contains("AC3"))
+ {
+ // Switch to AAC
+ drp_audioEncoder.SelectedIndex = 0;
+ }
+
+ // If the track isn't DTS, and the encoder is, change it.
+ if (audioList.SelectedRows[0].Cells[2].Value.ToString().Contains("DTS") && !audioList.SelectedRows[0].Cells[1].Value.ToString().Contains("DTS"))
+ {
+ // Switch to AAC
+ drp_audioEncoder.SelectedIndex = 0;
+ }
+ }
break;
case "drp_audioEncoder":
SetMixDown();
|