xbmc/xbmc — pull request #2825 by ace20022 (2013-06-04 13:26:41+00:00)
Title: [Fix/Subtitles] Fix wrong indices of erroneous subtitles.

If a selected subtitle could not be opened, the maximal index of all subtitles gets returned by player.getSubtitle(). This yields wrong info about the subtitle, particularly the audio gui dialogue shows/marks the last one as selected.