xbmc/xbmc — pull request #1690 by FernetMenta (2012-10-28 15:53:00+00:00)
Title: pvr: drop method UpdateStreams in demuxer, do not dispose streams on STREAMCHANGE

Disposing all streams on DMX_SPECIALID_STREAMCHANGE has triggered an unnecessary reopen of video codec due to change of hints. Now as extradata is parsed, missing extradata after stream disposal triggers complete reopen of video codec.

I have changed RequestStreams to selectively dispose streams if required.

1)
DMX_SPECIALID_STREAMCHANGE does not trigger Reset(), instead it calls RequestStreams

2)
DMX_SPECIALID_STREAMINFO triggers a call to RequestStreams instead of UpdateStreams