diff options
Diffstat (limited to 'macosx/HBVideo.m')
-rw-r--r-- | macosx/HBVideo.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/macosx/HBVideo.m b/macosx/HBVideo.m index 119b9f421..9fe897b16 100644 --- a/macosx/HBVideo.m +++ b/macosx/HBVideo.m @@ -272,6 +272,11 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; return retval; } +- (void)setNilValueForKey:(NSString *)key +{ + [self setValue:@0 forKey:key]; +} + #pragma mark - - (NSArray *)presets @@ -371,6 +376,8 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; copy->_level = [_level copy]; copy->_videoOptionExtra = [_videoOptionExtra copy]; copy->_fastDecode = _fastDecode; + + copy->_notificationsEnabled = _notificationsEnabled; } return copy; @@ -437,6 +444,8 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; decodeBool(_fastDecode); + _notificationsEnabled = YES; + return self; } |