summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/HBSubtitlesController.h2
-rw-r--r--macosx/HBSubtitlesController.m9
2 files changed, 5 insertions, 6 deletions
diff --git a/macosx/HBSubtitlesController.h b/macosx/HBSubtitlesController.h
index 013074cf0..dd41d1d81 100644
--- a/macosx/HBSubtitlesController.h
+++ b/macosx/HBSubtitlesController.h
@@ -29,7 +29,7 @@ extern NSString *keySubTrackSrtCharCode;
*/
@interface HBSubtitlesController : NSViewController <HBViewValidation>
-- (void)addTracksFromQueue:(NSMutableArray *)newSubtitleArray;
+- (void)addTracksFromQueue:(NSArray *)queueSubtitleArray;
- (void)applySettingsFromPreset:(NSDictionary *)preset;
diff --git a/macosx/HBSubtitlesController.m b/macosx/HBSubtitlesController.m
index 91ed94c8d..4882cc84b 100644
--- a/macosx/HBSubtitlesController.m
+++ b/macosx/HBSubtitlesController.m
@@ -192,13 +192,13 @@ NSString *keySubTrackLanguageIndex = @"keySubTrackLanguageIndex";
return [ret autorelease];
}
-- (void)addTracksFromQueue:(NSMutableArray *)newSubtitleArray
+- (void)addTracksFromQueue:(NSArray *)queueSubtitleArray
{
/* Note: we need to look for external subtitles so it can be added to the source array track.
* Remember the source container subs are already loaded with resetTitle which is already called
* so any external sub sources need to be added to our source subs here
*/
- for (id tempObject in newSubtitleArray)
+ for (id tempObject in queueSubtitleArray)
{
/* We have an srt track */
if ([tempObject[keySubTrackType] intValue] == SRTSUB)
@@ -212,10 +212,9 @@ NSString *keySubTrackLanguageIndex = @"keySubTrackLanguageIndex";
}
}
- [newSubtitleArray addObject:[self createSubtitleTrack]];
-
// Set the subtitleArray to the newSubtitleArray
- [self.subtitleArray setArray:newSubtitleArray];
+ [self.subtitleArray setArray:queueSubtitleArray];
+ [self.subtitleArray addObject:[self createSubtitleTrack]];
[self.fTableView reloadData];
}