Commit 1acc1ef8 authored by Felix Paul Kühne's avatar Felix Paul Kühne

fix runtime exception

parent b21279fd
......@@ -1222,8 +1222,11 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
if (row == mediaPlayer.currentTitleIndex)
cellShowsCurrentTrack = YES;
} else {
NSDictionary *description = [mediaPlayer chapterDescriptionsOfTitle:mediaPlayer.currentTitleIndex][row];
NSArray *chapterDescriptions = [mediaPlayer chapterDescriptionsOfTitle:mediaPlayer.currentTitleIndex];
if (row < chapterDescriptions.count) {
NSDictionary *description = chapterDescriptions[row];
cell.textLabel.text = [NSString stringWithFormat:@"%@ (%@)", description[VLCChapterDescriptionName], [[VLCTime timeWithNumber:description[VLCChapterDescriptionDuration]] stringValue]];
}
if (row == mediaPlayer.currentChapterIndex)
cellShowsCurrentTrack = YES;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment