Commit 5787e92c authored by Felix Paul Kühne's avatar Felix Paul Kühne

player: fix potential runtime exception

parent e9bcbceb
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment