From: Damiano Galassi Date: Fri, 26 Feb 2016 09:03:16 +0000 (+0100) Subject: MacGui: the 'default' as the standard deinterlace filter value. X-Git-Tag: 1.0.0~629 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e06ab1d8cbed41d3adb9181d5e623c51c91a2222;p=handbrake MacGui: the 'default' as the standard deinterlace filter value. --- diff --git a/macosx/HBFilters.m b/macosx/HBFilters.m index fe7d80e37..e0352868a 100644 --- a/macosx/HBFilters.m +++ b/macosx/HBFilters.m @@ -27,7 +27,7 @@ NSString * const HBFiltersChangedNotification = @"HBFiltersChangedNotification"; _detelecineCustomString = @""; _deinterlace = @"off"; _deinterlaceCustomString = @""; - _deinterlacePreset = @"fast"; + _deinterlacePreset = @"default"; _denoise = @"off"; _denoiseCustomString = @""; _denoisePreset = @"medium"; @@ -114,14 +114,11 @@ NSString * const HBFiltersChangedNotification = @"HBFiltersChangedNotification"; { [[self.undo prepareWithInvocationTarget:self] setDeinterlacePreset:_deinterlacePreset]; } + if (deinterlacePreset) { _deinterlacePreset = [deinterlacePreset copy]; } - else - { - _deinterlacePreset = @"fast"; - } if (!(self.undo.isUndoing || self.undo.isRedoing)) { @@ -138,10 +135,9 @@ NSString * const HBFiltersChangedNotification = @"HBFiltersChangedNotification"; filter_id = HB_FILTER_DEINTERLACE; } - if (hb_validate_filter_preset(filter_id, self.deinterlacePreset.UTF8String, NULL) || - ([self.deinterlacePreset isEqualToString:@"default"] && filter_id == HB_FILTER_DEINTERLACE)) + if (hb_validate_filter_preset(filter_id, self.deinterlacePreset.UTF8String, NULL)) { - _deinterlacePreset = @"fast"; + _deinterlacePreset = @"default"; } }