diff options
author | sr55 <[email protected]> | 2016-02-10 21:09:51 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2016-02-10 21:09:51 +0000 |
commit | ee4f31153be52a68f80132f9918c322cc1e22193 (patch) | |
tree | cc8339a258beddaf9729ce5f789cb9d26b9877f6 /win | |
parent | 608819a9b683f6f1dd58aac9cc6da57cc777ad72 (diff) |
WinGui: Detect if FDK encoder is available or not.
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs b/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs index 06a079f8f..3eabe2217 100644 --- a/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/Audio/AudioEncoderConverter.cs @@ -16,6 +16,7 @@ namespace HandBrakeWPF.Converters.Audio using System.Windows;
using System.Windows.Data;
+ using HandBrake.ApplicationServices.Interop;
using HandBrake.ApplicationServices.Utilities;
using HandBrakeWPF.Utilities;
@@ -55,6 +56,13 @@ namespace HandBrakeWPF.Converters.Audio List<AudioEncoder> encoders = EnumHelper<AudioEncoder>.GetEnumList().ToList();
EncodeTask task = values[1] as EncodeTask;
+
+ if (!HandBrakeEncoderHelpers.AudioEncoders.Any(a => a.ShortName.Contains("fdk")))
+ {
+ encoders.Remove(AudioEncoder.fdkaac);
+ encoders.Remove(AudioEncoder.fdkheaac);
+ }
+
if (task != null && task.OutputFormat != OutputFormat.Mkv)
{
encoders.Remove(AudioEncoder.Vorbis);
|