Explorar el Código

player: fix potential runtime exception

Felix Paul Kühne hace 10 años
padre
commit
5787e92cfb
Se han modificado 1 ficheros con 1 adiciones y 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)