diff options
Diffstat (limited to 'macosx/HBVideo.m')
-rw-r--r-- | macosx/HBVideo.m | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/macosx/HBVideo.m b/macosx/HBVideo.m index e7e9b9798..48cd9f4a3 100644 --- a/macosx/HBVideo.m +++ b/macosx/HBVideo.m @@ -6,7 +6,7 @@ #import "HBVideo.h" #import "HBJob.h" -#import "NSCodingMacro.h" +#import "HBCodingUtilities.h" #include "hb.h" NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; @@ -391,6 +391,11 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; #pragma mark - NSCoding ++ (BOOL)supportsSecureCoding +{ + return YES; +} + - (void)encodeWithCoder:(NSCoder *)coder { [coder encodeInt:1 forKey:@"HBVideoVersion"]; @@ -441,12 +446,12 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; decodeBool(_turboTwoPass); decodeBool(_advancedOptions); - decodeObject(_preset); - decodeObject(_tune); - decodeObject(_profile); - decodeObject(_level); + decodeObject(_preset, NSString); + decodeObject(_tune, NSString); + decodeObject(_profile, NSString); + decodeObject(_level, NSString); - decodeObject(_videoOptionExtra); + decodeObject(_videoOptionExtra, NSString); decodeBool(_fastDecode); |