summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-04-10 16:50:24 +0100
committersr55 <[email protected]>2017-04-10 16:50:24 +0100
commitd2f892878a87fa6b62996f76c1e4bd9f6c0212e7 (patch)
treec5e9d99d0ac9228c0cf4876968d02b728c5a1a9f /win
parent10e88ed33ce9a397e92aed8d03631bed3014f8b9 (diff)
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.
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs12
1 files 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
/// <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)
@@ -341,11 +346,6 @@ namespace HandBrakeWPF.ViewModels
public IEnumerable<HBMixdown> Mixdowns { get; set; }
/// <summary>
- /// Gets or sets AudioBitrates.
- /// </summary>
- public IEnumerable<int> AudioBitrates { get; set; }
-
- /// <summary>
/// Gets or sets SampleRates.
/// </summary>
public IList<string> SampleRates { get; set; }