DVDAudioCodecFFmpeg: Grow the resampling buffer as needed instead of allocating it an arbitrary big size.
DVDAudioCodecFFmpeg: Remove write only assignment.
DllAvFilter: Always include libavfilter/buffersrc.h for av_buffersrc_add_frame.
[rbp/omxplayer] Move buffering decision out of OMXPlayerAudio

This gets the m_stalled behaviour closer to dvdplayer which may help live tv issues.
The buffering will be re-added at a higher level from omxplayer
[rbp/omxplayer] Move buffering to omxplayer level

We wait to pause the clock when the queue of audio data to GPU is dangerourly low to avoid stuttering audio.
Better to pause for a few seconds and then play some intelligible audio, than to continuously underrun.
[rbp/omxplayer] Move the buffer of the decoded audio to output port

The buffers between host and gpu components are duplicated, so 2 seconds of 8 channel 48kHz audio requires 3MB.
That memory is required on both host and gpu. We want this buffering to provide protection from underrun when the arm is busy.

By moving the majority of the buffering from omx_decoder's input to output port, we save that memory on the arm.
Also the output port is 16-bit integer, rather than float, so we halve the size in addition.
[rbp/omxplayer] Remove clock manipulation from a/v players
[rbp/omxplayer] Move start flags out of clock component

Keep track of start flags locally. I believe the behaviour is unchanged now that clock state is controlled only by OMXPlayer.
[rbp/omxplayer] Remove unused function OMXStart
[cosmetics] indent
[fix] change initialization of m_timerItem to NULL
Merge pull request #2926 from popcornmix/omxplayer_buffering

[rbp/omxplayer] Move buffering decision to omxplayer level
Merge pull request #2927 from popcornmix/remove_clock_manipulation

[rbp/omxplayer] Remove clock manipulation
Merge pull request #2928 from xhaggi/cosmetics

[pvr] fix and cosmetics for #2912
[rbp/omxplayer] Reduce the size of preroll

The preroll defines how much earlier the clock starts compares to timestamps of audio/video.
This needs enough time for GPU side worst video/audio decode/schedule/render.
This should never be more than 200ms.

This makes playback start and seeks 600ms more responsive which is noticable when seeking through a video.
[rbp/omxplayer] Remove flush of video codec when audio codec changes

I believe this was added to work around a race condition that is no longer present.
It discards video and results in a corruption until the next I frame.
Merge pull request #2929 from popcornmix/reduce_preroll

[rbp/omxplayer] Reduce the size of preroll
Merge pull request #2930 from popcornmix/remove_flush

[rbp/omxplayer] Remove flush of video codec when audio codec changes
[rbp/omxplayer] Add logging for when audio/video EOS is first detected

This is useful for diagnosing streams that hang at end of file
Merge pull request #2931 from popcornmix/log_eos

[rbp/omxplayer] Add logging for when audio/video EOS is first detected