From d2f892878a87fa6b62996f76c1e4bd9f6c0212e7 Mon Sep 17 00:00:00 2001 From: sr55 Date: Mon, 10 Apr 2017 16:50:24 +0100 Subject: [PATCH] WinGui: Audio Defaults: Don't allow the user to set "None" as a mixdown. It's not a valid option and breaks the bitrate dropdown. --- .../ViewModels/AudioDefaultsViewModel.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs index 2a18d7a4b..6389b58db 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs @@ -28,6 +28,11 @@ namespace HandBrakeWPF.ViewModels /// /// The Audio View Model /// + /// + /// TODO: + /// - Support setting fallback encoder options for Passthru tracks. + /// - Mixdown Dropdown should only show mixdowns for the set encoder. Not all. + /// public class AudioDefaultsViewModel : ViewModelBase, IAudioDefaultsViewModel { private BindingList availableLanguages; @@ -49,7 +54,7 @@ namespace HandBrakeWPF.ViewModels this.SelectedLangaugesToMove = new BindingList(); this.AvailableLanguages = new BindingList(); this.AudioEncoders = EnumHelper.GetEnumList(); - this.Mixdowns = new BindingList(HandBrakeEncoderHelpers.Mixdowns); + this.Mixdowns = new BindingList(HandBrakeEncoderHelpers.Mixdowns.Where(m => m.ShortName != "none").ToList()); this.SampleRates = new ObservableCollection { "Auto" }; foreach (var item in HandBrakeEncoderHelpers.AudioSampleRates) @@ -340,11 +345,6 @@ namespace HandBrakeWPF.ViewModels /// public IEnumerable Mixdowns { get; set; } - /// - /// Gets or sets AudioBitrates. - /// - public IEnumerable AudioBitrates { get; set; } - /// /// Gets or sets SampleRates. /// -- 2.40.0