]> granicus.if.org Git - handbrake/commitdiff
WinGui: Audio Defaults: Don't allow the user to set "None" as a mixdown. It's not...
authorsr55 <sr55.hb@outlook.com>
Mon, 10 Apr 2017 15:50:24 +0000 (16:50 +0100)
committersr55 <sr55.hb@outlook.com>
Mon, 10 Apr 2017 15:50:24 +0000 (16:50 +0100)
win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs

index 2a18d7a4bde2e4d702c1497c9eeafc4c5eda7587..6389b58db752b05ea63ee0b032da5c5f3fb27a5c 100644 (file)
@@ -28,6 +28,11 @@ namespace HandBrakeWPF.ViewModels
     /// <summary>
     /// The Audio View Model
     /// </summary>
+    /// <remarks>
+    /// TODO:
+    /// - Support setting fallback encoder options for Passthru tracks.
+    /// - Mixdown Dropdown should only show mixdowns for the set encoder. Not all.
+    /// </remarks>
     public class AudioDefaultsViewModel : ViewModelBase, IAudioDefaultsViewModel
     {
         private BindingList<string> availableLanguages;
@@ -49,7 +54,7 @@ namespace HandBrakeWPF.ViewModels
             this.SelectedLangaugesToMove = new BindingList<string>();
             this.AvailableLanguages = new BindingList<string>();
             this.AudioEncoders = EnumHelper<AudioEncoder>.GetEnumList();
-            this.Mixdowns = new BindingList<HBMixdown>(HandBrakeEncoderHelpers.Mixdowns);
+            this.Mixdowns = new BindingList<HBMixdown>(HandBrakeEncoderHelpers.Mixdowns.Where(m => m.ShortName != "none").ToList());
 
             this.SampleRates = new ObservableCollection<string> { "Auto" };
             foreach (var item in HandBrakeEncoderHelpers.AudioSampleRates)
@@ -340,11 +345,6 @@ namespace HandBrakeWPF.ViewModels
         /// </summary>
         public IEnumerable<HBMixdown> Mixdowns { get; set; }
 
-        /// <summary>
-        /// Gets or sets AudioBitrates.
-        /// </summary>
-        public IEnumerable<int> AudioBitrates { get; set; }
-
         /// <summary>
         /// Gets or sets SampleRates.
         /// </summary>