diff options
author | sr55 <[email protected]> | 2010-01-31 14:28:23 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-01-31 14:28:23 +0000 |
commit | 138ea1180443c3b73b81e47da016a54bf133f133 (patch) | |
tree | c1ef697788b661d597a8e696af73e150361b6b71 /win/C#/Functions/PresetLoader.cs | |
parent | cc9508040bff9c2277be1255c4d91ea19f13e665 (diff) |
WinGui:
- Refacotring Code.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3091 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/PresetLoader.cs')
-rw-r--r-- | win/C#/Functions/PresetLoader.cs | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/win/C#/Functions/PresetLoader.cs b/win/C#/Functions/PresetLoader.cs index f42e734eb..a653f9669 100644 --- a/win/C#/Functions/PresetLoader.cs +++ b/win/C#/Functions/PresetLoader.cs @@ -213,22 +213,7 @@ namespace Handbrake.Functions #endregion
#region Audio
- // Clear the audio listing
- mainWindow.AudioSettings.ClearAudioList();
-
- if (presetQuery.AudioInformation != null)
- foreach (AudioTrack track in presetQuery.AudioInformation)
- {
- ListViewItem newTrack = new ListViewItem(mainWindow.AudioSettings.GetNewID().ToString());
-
- newTrack.SubItems.Add("Automatic");
- newTrack.SubItems.Add(track.Encoder);
- newTrack.SubItems.Add(track.MixDown);
- newTrack.SubItems.Add(track.SampleRate);
- newTrack.SubItems.Add(track.Encoder.Contains("AC3") ? "Auto" : track.Bitrate);
- newTrack.SubItems.Add(track.DRC);
- mainWindow.AudioSettings.AddTrackForPreset(newTrack);
- }
+ mainWindow.AudioSettings.LoadTracks(presetQuery.AudioInformation);
#endregion
#region Other
|