Update CueDocument.cpp

fixed string type passed to logger so it compiles
Merge pull request #2802 from Hollow011/master

Fixes build broken by #2789
softae: verify we have enough samples in WriteSink

Some other thread may have killed the buffer behind our backs
softae: make sure we hold sink lock when we kill of sinks
dvdplayer: factor out render config flag from OutputPicture
dvdplayer: cosmetic alignment of checks
renderer: split out frame move from render action in video renderers
renderer: move waiting for next frame into rendermanager
core: drop Update() from IPlayer and paused state from renderer

We never called it on players and we never asked renderer to pause
renderer: fix race condition in FlipPage
move NUM_BUFFERS up to BaseRenderer.h
dvdplayer: add interface to codec for number of shared references

This is how many references to pictures that can be retained when
calling Decode the next time around
renderer: replace BYTE* with uint8_t*
linuxrenderer: delete all textures on reconfigure
renderer: calculate present parameters before setting up fields

We don't even need to hold lock here potentially
renderer: add buffering to render system

This allow renderer to queue up frames for display after decode.

Original Implementation By: Rainer Hochecker <fernetmenta@online.de>
renderer: allow dropping at output stage when we have a replacment frame

Allo dropping a frame that is about to be rendered, if it is late
and there already exist a replacement frame that should be presented
now.
renderer: skip second field of bob deinterlace if late
add buffering - some documentation
dvdplayer: display pictures skipped on output