summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Converters/Audio
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-05-31 20:56:25 +0100
committersr55 <[email protected]>2017-05-31 20:56:25 +0100
commit5e787c33895fbfa0e91b4b802c0ee85b6fd2c36f (patch)
treeb245930a68924e3d4259d71fefed3e3f71362750 /win/CS/HandBrakeWPF/Converters/Audio
parent37642a848bfaa1ba85ba12067a9b1c4e9c28e953 (diff)
WinGui: Add "None" as an option to the fallback encoder dropdown. Setting this option to none will not add a passthru track when the passthru codec does not match the source track. #623
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters/Audio')
-rw-r--r--win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs b/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs
index 7f70288ce..4c3bd59b5 100644
--- a/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs
+++ b/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs
@@ -56,6 +56,8 @@ namespace HandBrakeWPF.Converters.Audio
List<AudioEncoder> encoders = EnumHelper<AudioEncoder>.GetEnumList().ToList();
EncodeTask task = values[1] as EncodeTask;
+ encoders.Remove(AudioEncoder.None); // Assume we never want to show this.
+
if (!HandBrakeEncoderHelpers.AudioEncoders.Any(a => a.ShortName.Contains("fdk")))
{
encoders.Remove(AudioEncoder.fdkaac);
@@ -71,6 +73,7 @@ namespace HandBrakeWPF.Converters.Audio
encoders.Remove(AudioEncoder.Opus);
}
+ // Hide the Passthru options and show the "None" option
if (parameter != null && parameter.ToString() == "True")
{
encoders.Remove(AudioEncoder.DtsHDPassthrough);
@@ -82,6 +85,8 @@ namespace HandBrakeWPF.Converters.Audio
encoders.Remove(AudioEncoder.Passthrough);
encoders.Remove(AudioEncoder.TrueHDPassthrough);
encoders.Remove(AudioEncoder.FlacPassthru);
+
+ encoders.Add(AudioEncoder.None);
}
return EnumHelper<AudioEncoder>.GetEnumDisplayValuesSubset(encoders);