diff options
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) { |