소스 검색

VLCPlaybackController: replace deprecated, thread-unsafe-API

Felix Paul Kühne 8 년 전
부모
커밋
c8d2d628bc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Sources/VLCPlaybackController.m

+ 1 - 1
Sources/VLCPlaybackController.m

@@ -338,7 +338,7 @@ VLCMediaDelegate>
     [_mediaPlayer addObserver:self forKeyPath:@"remainingTime" options:0 context:nil];
 
     if (self.mediaList)
-        [_listPlayer playItemAtIndex:self.itemInMediaListToBePlayedFirst];
+        [_listPlayer playItemAtNumber:@(self.itemInMediaListToBePlayedFirst)];
     else
         [_listPlayer playMedia:_listPlayer.rootMedia];