summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/PresetLoader.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-06-19 15:19:01 +0000
committersr55 <[email protected]>2009-06-19 15:19:01 +0000
commit17bd4de6ba10409ff2a218c3365aa8466c5457c2 (patch)
treeac005301a58d4b25975a7fedee4e6775a5d9ac1e /win/C#/Functions/PresetLoader.cs
parenta7f2d2c478a8a2177d33fe5fb01e260d7dfd5cd4 (diff)
WinGui:
- Cleans up the appcast reader code a bit more, removing all globals. - Small fix to preset loader to make sure audio bit-rate is set to auto for AC3 tracks. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2576 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/PresetLoader.cs')
-rw-r--r--win/C#/Functions/PresetLoader.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/win/C#/Functions/PresetLoader.cs b/win/C#/Functions/PresetLoader.cs
index 251735aec..4952e5d3d 100644
--- a/win/C#/Functions/PresetLoader.cs
+++ b/win/C#/Functions/PresetLoader.cs
@@ -243,7 +243,10 @@ namespace Handbrake.Functions
newTrack.SubItems.Add(track.Encoder);
newTrack.SubItems.Add(track.MixDown);
newTrack.SubItems.Add(track.SampleRate);
- newTrack.SubItems.Add(track.Bitrate);
+ if (track.Encoder.Contains("AC3"))
+ newTrack.SubItems.Add("Auto");
+ else
+ newTrack.SubItems.Add(track.Bitrate);
newTrack.SubItems.Add(track.DRC);
mainWindow.audioPanel.addTrackForPreset(newTrack);
}