diff options
author | Damiano Galassi <[email protected]> | 2016-12-27 11:53:11 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-12-27 11:53:11 +0100 |
commit | 2cc18941fa64a74d0f86f00215f112d940266585 (patch) | |
tree | 45b4d9b423ebcc5be8605e413af3fc021359e3f9 /macosx/HBSubtitles.m | |
parent | ec1553108f3881a380904bcc8be7c19a626cb69a (diff) |
MacGui: enable NSSecureCoding for the queue file.
Diffstat (limited to 'macosx/HBSubtitles.m')
-rw-r--r-- | macosx/HBSubtitles.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/HBSubtitles.m b/macosx/HBSubtitles.m index 549d06647..f1a31174b 100644 --- a/macosx/HBSubtitles.m +++ b/macosx/HBSubtitles.m @@ -83,7 +83,7 @@ extern NSString *keySubTrackSrtFileURL; NSDictionary *none = @{ keySubTrackName: NSLocalizedString(@"None", nil)}; [sourceTracks insertObject:none atIndex:0]; - NSDictionary *foreign = @{ keySubTrackName: foreignAudioSearchTrackName, + NSDictionary *foreign = @{ keySubTrackName: [foreignAudioSearchTrackName copy], keySubTrackType: @(foreignAudioType) }; [sourceTracks insertObject:foreign atIndex:1]; @@ -446,8 +446,8 @@ extern NSString *keySubTrackSrtFileURL; self = [super init]; decodeInt(_container); - decodeObject(_sourceTracks, NSMutableArray); - decodeObject(_tracks, NSMutableArray); + decodeCollectionOfObjects(_sourceTracks, NSArray, NSDictionary); + decodeCollectionOfObjects(_tracks, NSMutableArray, HBSubtitlesTrack); for (HBSubtitlesTrack *track in _tracks) { |