summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs')
-rw-r--r--win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs b/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs
index 3ced1e9c2..ff6eaec06 100644
--- a/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs
+++ b/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs
@@ -13,9 +13,9 @@ namespace HandBrakeWPF.Converters.Audio
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
+ using System.Windows;
using System.Windows.Data;
- using HandBrake.ApplicationServices.Model;
using HandBrake.ApplicationServices.Services.Encode.Model;
using HandBrake.ApplicationServices.Services.Encode.Model.Models;
using HandBrake.ApplicationServices.Utilities;
@@ -57,22 +57,26 @@ namespace HandBrakeWPF.Converters.Audio
encoders.Remove(AudioEncoder.Vorbis);
encoders.Remove(AudioEncoder.ffflac);
encoders.Remove(AudioEncoder.ffflac24);
+ encoders.Remove(AudioEncoder.FlacPassthru);
}
if (parameter != null && parameter.ToString() == "True")
{
encoders.Remove(AudioEncoder.DtsHDPassthrough);
encoders.Remove(AudioEncoder.DtsPassthrough);
+ encoders.Remove(AudioEncoder.EAc3Passthrough);
encoders.Remove(AudioEncoder.AacPassthru);
encoders.Remove(AudioEncoder.Ac3Passthrough);
encoders.Remove(AudioEncoder.Mp3Passthru);
encoders.Remove(AudioEncoder.Passthrough);
+ encoders.Remove(AudioEncoder.TrueHDPassthrough);
+ encoders.Remove(AudioEncoder.FlacPassthru);
}
return EnumHelper<AudioEncoder>.GetEnumDisplayValuesSubset(encoders);
}
- if (values.Any())
+ if (values.Any() && values.First() != DependencyProperty.UnsetValue)
{
return EnumHelper<AudioEncoder>.GetDisplay((AudioEncoder)values[0]);
}