Browse Source

player: fix potential runtime exception

Felix Paul Kühne 10 years ago
parent
commit
5787e92cfb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/VLCMovieViewController.m

+ 1 - 1
Sources/VLCMovieViewController.m

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