summaryrefslogtreecommitdiffstats
path: root/macosx/HBJob+HBJobConversion.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-10-09 23:01:58 +0200
committerDamiano Galassi <[email protected]>2015-10-09 23:01:58 +0200
commitedb37c75b9072ef9f3abae398f5562459ab07977 (patch)
treee58f065ae533079f2dbb99d74fc0528a0f284118 /macosx/HBJob+HBJobConversion.m
parentb899bfa36ab7f42761d00b355289a9b91445bdfd (diff)
MacGui: use the new deinterlate preset keys
Diffstat (limited to 'macosx/HBJob+HBJobConversion.m')
-rw-r--r--macosx/HBJob+HBJobConversion.m21
1 files changed, 8 insertions, 13 deletions
diff --git a/macosx/HBJob+HBJobConversion.m b/macosx/HBJob+HBJobConversion.m
index 08514d55d..802eb2bda 100644
--- a/macosx/HBJob+HBJobConversion.m
+++ b/macosx/HBJob+HBJobConversion.m
@@ -429,22 +429,17 @@
hb_add_filter(job, filter, filter_str);
}
- if (self.filters.useDecomb && ![self.filters.decomb isEqualToString:@"off"])
+ // Deinterlace
+ if (![self.filters.deinterlace isEqualToString:@"off"])
{
- // Decomb
int filter_id = HB_FILTER_DECOMB;
+ if ([self.filters.deinterlace isEqualToString:@"deinterlace"])
+ {
+ filter_id = HB_FILTER_DEINTERLACE;
+ }
+
const char *filter_str = hb_generate_filter_settings(filter_id,
- self.filters.decomb.UTF8String,
- self.filters.decombCustomString.UTF8String);
- filter = hb_filter_init(filter_id);
- hb_add_filter(job, filter, filter_str);
- }
- else if (!self.filters.useDecomb && ![self.filters.deinterlace isEqualToString:@"off"])
- {
- // Deinterlace
- int filter_id = HB_FILTER_DEINTERLACE;
- const char *filter_str = hb_generate_filter_settings(filter_id,
- self.filters.deinterlace.UTF8String,
+ self.filters.deinterlacePreset.UTF8String,
self.filters.deinterlaceCustomString.UTF8String);
filter = hb_filter_init(filter_id);
hb_add_filter(job, filter, filter_str);