diff options
author | ritsuka <[email protected]> | 2015-04-22 16:49:30 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-04-22 16:49:30 +0000 |
commit | 1e990c1a5441c64ce2b985e019a814deecf74843 (patch) | |
tree | 7ed44d3ebff43d4a052bc9646fc5a06636e85347 /macosx/HBAudioDefaults.m | |
parent | 992a1ab264904b96ab5b396e5fd505a272589196 (diff) |
MacGui: implemented the NSSecureCoding protocol in HBJob. Added a compatibility class to fall back on NSCoding on 10.7 and earlier.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7112 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudioDefaults.m')
-rw-r--r-- | macosx/HBAudioDefaults.m | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/macosx/HBAudioDefaults.m b/macosx/HBAudioDefaults.m index 641520e25..a5c6f100a 100644 --- a/macosx/HBAudioDefaults.m +++ b/macosx/HBAudioDefaults.m @@ -6,7 +6,7 @@ #import "HBAudioDefaults.h" #import "HBAudioTrackPreset.h" -#import "NSCodingMacro.h" +#import "HBCodingUtilities.h" #import "hb.h" #import "lang.h" @@ -259,9 +259,12 @@ copy->_allowAACPassthru = _allowAACPassthru; copy->_allowAC3Passthru = _allowAC3Passthru; + copy->_allowEAC3Passthru = _allowEAC3Passthru; copy->_allowDTSHDPassthru = _allowDTSHDPassthru; copy->_allowDTSPassthru = _allowDTSPassthru; copy->_allowMP3Passthru = _allowMP3Passthru; + copy->_allowTrueHDPassthru = _allowTrueHDPassthru; + copy->_allowFLACPassthru = _allowFLACPassthru; copy->_encoderFallback = _encoderFallback; copy->_secondaryEncoderMode = _secondaryEncoderMode; @@ -272,6 +275,11 @@ #pragma mark - NSCoding ++ (BOOL)supportsSecureCoding +{ + return YES; +} + - (void)encodeWithCoder:(NSCoder *)coder { [coder encodeInt:1 forKey:@"HBAudioDefaultsVersion"]; @@ -283,9 +291,12 @@ encodeBool(_allowAACPassthru); encodeBool(_allowAC3Passthru); + encodeBool(_allowEAC3Passthru); encodeBool(_allowDTSHDPassthru); encodeBool(_allowDTSPassthru); encodeBool(_allowMP3Passthru); + encodeBool(_allowTrueHDPassthru); + encodeBool(_allowFLACPassthru); encodeInt(_encoderFallback); encodeBool(_secondaryEncoderMode); @@ -296,15 +307,18 @@ self = [super init]; decodeInteger(_trackSelectionBehavior); - decodeObject(_trackSelectionLanguages); + decodeObject(_trackSelectionLanguages, NSMutableArray); - decodeObject(_tracksArray); + decodeObject(_tracksArray, NSMutableArray); decodeBool(_allowAACPassthru); decodeBool(_allowAC3Passthru); + decodeBool(_allowEAC3Passthru); decodeBool(_allowDTSHDPassthru); decodeBool(_allowDTSPassthru); decodeBool(_allowMP3Passthru); + decodeBool(_allowTrueHDPassthru); + decodeBool(_allowFLACPassthru); decodeInt(_encoderFallback); decodeBool(_secondaryEncoderMode); |