xbmc/xbmc — pull request #835 by davilla (2012-03-31 19:51:34+00:00)
Title: refactor dvdplayervideo demux queue to include codec buffering

This extends the dvdplayervideo demux queue to include possible codec buffering. Some hw codecs run external buffers and dvdplayer/dvdplayervideo needs to include these buffers in making decisions during video startup/playback. Right now we attempt to keep external buffing to a min and pray that we do not cause too much thrashing. This refactor eliminates these games.

This is slightly tricky as the demux queue can be used by size or by time and you have to handle both cases as you do not know which is being used.

1) move dvdplayer demux message queue private and add accessors.
2) change accessors to better indicate their functions and remove unused functions.
3) extend queues to include possible codec buffering.