summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2015-10-19 13:14:04 -0700
committerJohn Stebbins <[email protected]>2015-10-19 13:14:04 -0700
commitba3d0e46199db21c1e4e899cc1d852ed0738d951 (patch)
tree51f18e3a0476f3256a27b5839e62c45b210c60cb /win/CS/HandBrakeWPF
parent8a01c54c5cfd7107a00ab8417af07e161ff97b56 (diff)
parent2e432bdd792739bb498313c36fce824f1debe278 (diff)
Merge pull request #21 from jstebbins/grayscale
grayscale: make it a real filter
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r--win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs
index 0e979f3d9..31688c334 100644
--- a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs
+++ b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs
@@ -396,7 +396,6 @@ namespace HandBrakeWPF.Services.Encode.Factories
Filters filter = new Filters
{
FilterList = new List<Filter>(),
- Grayscale = job.Grayscale
};
// Detelecine
@@ -506,6 +505,12 @@ namespace HandBrakeWPF.Services.Encode.Factories
filter.FilterList.Add(filterItem);
}
+ if (job.Grayscale)
+ {
+ Filter filterItem = new Filter { ID = (int)hb_filter_ids.HB_FILTER_GRAYSCALE, Settings = null };
+ filter.FilterList.Add(filterItem);
+ }
+
// CropScale Filter
Filter cropScale = new Filter
{