[rbp/omxplayer] Fix check for contiguous audio buffers

The check for contiguous audio buffers is not sufficient in #3022 causes problems with AAC audio
[rbp/omxplayer] Avoid loss of volume messages

There seems to be a race condition where the volume request arrives as the omx audio pipeline is being created.
Restructure the volume messages to apply the initial volume as pipeline is being created, and add missing locks.
This also reduces the differences between OMXPlayer and DVDPlayer
PVR: Fix stopping when station timeline is open and user presses stop
Merge pull request #3118 from fritsch/pvr-fix-timeline-crash

PVR: Fix stopping when station timeline is open and user presses stop
Fixed some warnings when compiling using -O2
Merge pull request #3110 from popcornmix/volumeloss

[rbp/omxplayer] Avoid loss of volume messages
Merge pull request #3109 from popcornmix/contiguousaudio

[rbp/omxplayer] Fix check for contiguous audio buffers
[rbp/omxplayer] Handle displaytime more like dvdplayer

We had various glitches when mixing seeking and trickplay with online streams or dvd content.
This tries to match more closely what dvdplayer does and fixes some seek/trickplay jumping issues
Merge pull request #3108 from popcornmix/dvddisplaytime

[rbp/omxplayer] Handle displaytime more like dvdplayer
Use advancedsetting to speed up ReadRate in players
Merge pull request #3104 from fritsch/readrate-avsetting

Use advancedsetting to speed up ReadRate of players
fixed: restore ability to calibrate resolution pixel ratio

Was broken by 3d merge
fix interlaced rez selection if current is not interlaced
Merge pull request #3099 from Voyager1/fix-res-selection

[fix] Prevent auto-selection of interlaced resolution when matching FPS
[rbp/omxplayer] Support both analogue and hdmi audio

Thanks to stupid-boy for original implementation.
Revert "[rbp/omxplayer] Support both analogue and hdmi audio"

This reverts commit 77c026c4f4ff8b695291a60ee6880172699fd890.
[3D] Support switching to 3D resolutions

Include matching 3D flags (SBS/TAB) in the score of a resolution to switch to, to enable switching to 3d modes.
Also remove the old code that treated 3D modes differently when assigning a score.

I've also added a small weight to higher multiples of the desired framerate, so if display supports 30, 60 and 120Hz
and the video is 30fps then 30 will now be chosen rather than 120. This reduces the overhead of rendering the gui.
[confluence] Use animated gif as a cheaper working spinner
[rbp/omxplayer] Do we need discontinuity handling?

So far I've not seen what this is needed for and it does cause problems for some files.
Add missing h264dsp initialisation call

Each AVStream struct for an H.264 elementary stream actually has two copies
of the H264DSPContext struct (and in fact all the other members of
H264Context as well):

((H264Context *) ((AVStream *)st)->codec->priv_data)->h264dsp
((H264Context *) ((AVStream *)st)->parser->priv_data)->h264dsp

but only the first of these was actually being initialised. This prevented
the addition of platform-specific implementations of parser-related functions.