summaryrefslogtreecommitdiffstats
path: root/win/CS/Controls
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-03-20 17:49:20 +0000
committersr55 <[email protected]>2011-03-20 17:49:20 +0000
commitfdef4b5164b56403a2a6710ffb5a605d0e434924 (patch)
tree598261e64d7b742ecdc40c801cbf6a8295a1648e /win/CS/Controls
parentfc436bc475affd57046a4408a60730ec6f3d2fa6 (diff)
WinGui:
- Bugfixes in the audio panel to handle the enumerations correctly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3856 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Controls')
-rw-r--r--win/CS/Controls/AudioPanel.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/win/CS/Controls/AudioPanel.cs b/win/CS/Controls/AudioPanel.cs
index cfe8fa8fb..54e07af44 100644
--- a/win/CS/Controls/AudioPanel.cs
+++ b/win/CS/Controls/AudioPanel.cs
@@ -11,6 +11,7 @@ namespace Handbrake.Controls
using System.Linq;
using System.Windows.Forms;
+ using HandBrake.ApplicationServices.Functions;
using HandBrake.ApplicationServices.Model;
using HandBrake.ApplicationServices.Model.Encoding;
using HandBrake.ApplicationServices.Parsing;
@@ -115,9 +116,9 @@ namespace Handbrake.Controls
newTrack.CreateCells(audioList);
newTrack.Cells[0].Value = GetNewID().ToString();
newTrack.Cells[1].Value = "Automatic";
- newTrack.Cells[2].Value = track.Encoder;
- newTrack.Cells[3].Value = track.MixDown;
- newTrack.Cells[4].Value = (track.Encoder == AudioEncoder.Ac3Passthrough || track.Encoder == AudioEncoder.DtsPassthrough) ? "Auto" : track.SampleRate.ToString();
+ newTrack.Cells[2].Value = EnumHelper.GetDescription(track.Encoder);
+ newTrack.Cells[3].Value = EnumHelper.GetDescription(track.MixDown);
+ newTrack.Cells[4].Value = (track.Encoder == AudioEncoder.Ac3Passthrough || track.Encoder == AudioEncoder.DtsPassthrough || track.SampleRate == 0.0) ? "Auto" : track.SampleRate.ToString();
newTrack.Cells[5].Value = (track.Encoder == AudioEncoder.Ac3Passthrough || track.Encoder == AudioEncoder.DtsPassthrough) ? "Auto" : track.Bitrate.ToString();
newTrack.Cells[6].Value = (track.Encoder == AudioEncoder.Ac3Passthrough || track.Encoder == AudioEncoder.DtsPassthrough) ? string.Empty : track.DRC.ToString();
AddTrackForPreset(newTrack);