소스 검색

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)