瀏覽代碼

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];