Commit f8ae334d authored by floatingatoll's avatar floatingatoll Committed by Felix Paul Kühne

Use the chapter index to look up the description

A tvOS bug exists where all chapters show the name of the first chapter,
rather than the names of each chapter. This is because the player's
current title's index is used to lookup in the chapter descriptions
array. Using the current chapter's index instead results in a valid
lookup and working chapter titles on tvOS.
Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <felix@feepk.net>
parent 24b069ce
......@@ -135,7 +135,7 @@
trackCell.selectionMarkerVisible = isSelected;
VLCPlaybackController *vpc = [VLCPlaybackController sharedInstance];
NSDictionary *description = [vpc chapterDescriptionsDictAtIndex:[vpc indexOfCurrentTitle]];
NSDictionary *description = [vpc chapterDescriptionsDictAtIndex:row];
NSString *chapter = description[VLCChapterDescriptionName];
if (chapter == nil)
......
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