浏览代码

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 <felix@feepk.net>
Richard Soderberg 6 年之前
父节点
当前提交
f8ae334d49
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Apple-TV/Playback/Playback Info/VLCPlaybackInfoChaptersTVViewController.m

+ 1 - 1
Apple-TV/Playback/Playback Info/VLCPlaybackInfoChaptersTVViewController.m

@@ -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)