diff options
author | Damiano Galassi <[email protected]> | 2015-10-28 08:11:53 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2015-10-28 08:11:53 +0100 |
commit | 445938b7d30f2c7c695e8250c1e44d765c63531c (patch) | |
tree | 09de32d661901bfd29ac55b2f48517fe92bfdbeb /macosx/HBAudioDefaults.m | |
parent | 79df3e5408dbe6908767ee8525bba4c2b13e6a77 (diff) |
MacGui: switched the audio defaults track tableview to view based, and fixed a number of typo.
Diffstat (limited to 'macosx/HBAudioDefaults.m')
-rw-r--r-- | macosx/HBAudioDefaults.m | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/macosx/HBAudioDefaults.m b/macosx/HBAudioDefaults.m index dc43a0372..5035f8c0d 100644 --- a/macosx/HBAudioDefaults.m +++ b/macosx/HBAudioDefaults.m @@ -148,9 +148,9 @@ _secondaryEncoderMode = secondaryEncoderMode; } -- (NSArray *)audioEncoderFallbacks +- (NSArray<NSString *> *)audioEncoderFallbacks { - NSMutableArray *fallbacks = [[NSMutableArray alloc] init]; + NSMutableArray<NSString *> *fallbacks = [[NSMutableArray alloc] init]; for (const hb_encoder_t *audio_encoder = hb_audio_encoder_get_next(NULL); audio_encoder != NULL; audio_encoder = hb_audio_encoder_get_next(audio_encoder)) @@ -452,6 +452,7 @@ copy->_allowFLACPassthru = _allowFLACPassthru; copy->_encoderFallback = _encoderFallback; + copy->_container = _container; copy->_secondaryEncoderMode = _secondaryEncoderMode; } @@ -467,7 +468,7 @@ - (void)encodeWithCoder:(NSCoder *)coder { - [coder encodeInt:1 forKey:@"HBAudioDefaultsVersion"]; + [coder encodeInt:2 forKey:@"HBAudioDefaultsVersion"]; encodeInteger(_trackSelectionBehavior); encodeObject(_trackSelectionLanguages); @@ -484,6 +485,7 @@ encodeBool(_allowFLACPassthru); encodeInt(_encoderFallback); + encodeInt(_container); encodeBool(_secondaryEncoderMode); } @@ -506,6 +508,7 @@ decodeBool(_allowFLACPassthru); decodeInt(_encoderFallback); + decodeInt(_container); decodeBool(_secondaryEncoderMode); return self; |