xbmc/xbmc — pull request #1166 by Voyager-xbmc (2012-07-15 23:25:32+00:00)
Title: correct stream ids in case of CDVDInputStreamNavigator

this is needed for when DVDPlayer wants to open an (audio) stream whose ID has been set by CSelectionStreams::Update() but now looking to the demuxer to provide the stream for opening.

E.g. the first audio stream was ID 0 according to CSelectionStreams, but opening it through the demuxer using this ID returned the video stream. As such no problem, but the hints / codec types were completely wrong, with no audio playback as a result.

This fix makes sure that the ID set is the ID in use by the demuxer.