summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs')
-rw-r--r--win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs16
1 files changed, 15 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs
index 2f92db92c..b154c4dce 100644
--- a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs
+++ b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs
@@ -91,6 +91,10 @@ namespace HandBrakeWPF.Converters
{
return EnumHelper<OutputFormat>.GetEnumDisplayValues(typeof(OutputFormat));
}
+ if (value is IEnumerable<DeinterlaceFilter>)
+ {
+ return EnumHelper<DeinterlaceFilter>.GetEnumDisplayValues(typeof(DeinterlaceFilter));
+ }
// Single Items
if (targetType == typeof(VideoEncoder) || value.GetType() == typeof(VideoEncoder))
@@ -136,7 +140,12 @@ namespace HandBrakeWPF.Converters
{
return EnumHelper<OutputFormat>.GetDisplay((OutputFormat)value);
}
-
+
+ if (targetType == typeof(DeinterlaceFilter) || value.GetType() == typeof(DeinterlaceFilter))
+ {
+ return EnumHelper<DeinterlaceFilter>.GetDisplay((DeinterlaceFilter)value);
+ }
+
return null;
}
@@ -201,6 +210,11 @@ namespace HandBrakeWPF.Converters
return EnumHelper<OutputFormat>.GetValue(value.ToString());
}
+ if (targetType == typeof(DeinterlaceFilter) || value.GetType() == typeof(DeinterlaceFilter))
+ {
+ return EnumHelper<DeinterlaceFilter>.GetValue(value.ToString());
+ }
+
return null;
}
}