diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs b/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs index a6f29357f..0403fa881 100644 --- a/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs @@ -58,7 +58,12 @@ namespace HandBrakeWPF.Converters.Video return EnumHelper<VideoEncoder>.GetEnumDisplayValuesSubset(encoders);
}
- return EnumHelper<VideoEncoder>.GetDisplay((VideoEncoder)values[0]);
+ if (values[0].GetType() == typeof(VideoEncoder))
+ {
+ return EnumHelper<VideoEncoder>.GetDisplay((VideoEncoder)values[0]);
+ }
+
+ return null;
}
/// <summary>
|