summaryrefslogtreecommitdiffstats
path: root/macosx/HBSubtitles.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-12-27 11:53:11 +0100
committerDamiano Galassi <[email protected]>2016-12-27 11:53:11 +0100
commit2cc18941fa64a74d0f86f00215f112d940266585 (patch)
tree45b4d9b423ebcc5be8605e413af3fc021359e3f9 /macosx/HBSubtitles.m
parentec1553108f3881a380904bcc8be7c19a626cb69a (diff)
MacGui: enable NSSecureCoding for the queue file.
Diffstat (limited to 'macosx/HBSubtitles.m')
-rw-r--r--macosx/HBSubtitles.m6
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)
{