Explorar o código

player: fix potential runtime exception

Felix Paul Kühne %!s(int64=10) %!d(string=hai) anos
pai
achega
5787e92cfb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Sources/VLCMovieViewController.m

+ 1 - 1
Sources/VLCMovieViewController.m

@@ -1220,7 +1220,7 @@ return
         if (_mediaPlayer.videoSubTitlesIndexes.count > 1)
             ret++;
     } else {
-        if (_mediaPlayer.titles.count > 1)
+        if ([_mediaPlayer countOfTitles] > 1)
             ret++;
 
         if ([_mediaPlayer chaptersForTitleIndex:_mediaPlayer.currentTitleIndex].count > 1)