[depends] update PCRE version, use new configure flags
[depends] update PCRE version for native tools
videodb: fix SQL query in CleanDatabase() not considering NULLed fields
[GLES] Avoid getting viewport so often

GLES is generally offloaded to a GPU and fed a stream of commands.
These can be executed asynchronously by GPU and there is no need for the host to block.
Whenever a gl call requires a result back that may be affected by previous commands
the queue needs to be drained and a result returned from GPU. This acts as a bottleneck.

Looking closely at what xbmc does, there is only one call that requires a result that is
executed every frame. That is glGetIntegerv(GL_VIEWPORT).
However xbcm is perfectly capable of remembering what it set this to.

By using a cached version of this value, on a Pi, the framerate improves from 69fps to 95fps,
with vsync disabled, and RSS feed showing in home screen.
[rbp] Avoid crash when useddsfanart is enabled

Pi textures don't contain pixels on the arm, and the dds encode path wasn't protected against that.
Also don't allow dds to be enabled, as it is undesirable on Pi
[rbp/omxplayer] Avoid setting TIME_UNKNOWN on packet with STARTTIME set

It stops streams with no timestamps (e.g. raw h.264) from playing
[rbp/omxplayer] Fix typo from 847c746e07983652e05818a435c5115049a2d694
[rbp/omxplayer] Defer demuxer pause until buffers full

See #3377
[rbp/omxplayer] Handle sample rates below 8kHz

GPU requires sample rates above 8kHz, so limit the requested sample rate to 8kHz
(lower rates will be resampled)
Merge pull request #3698 from Montellese/videodb_cleanup_sql_fixes

videodb: SQL query fixes for clean database
Merge pull request #3685 from Karlson2k/pcre_dep_update_01

[depends] update PCRE version, use new configure flags
Merge pull request #3732 from popcornmix/low_sample

[rbp/omxplayer] Handle sample rates below 8kHz
Merge pull request #3729 from popcornmix/fix_typo

[rbp/omxplayer] Fix typo from 847c746e07983652e05818a435c5115049a2d694
Merge pull request #3728 from popcornmix/unknown_start

[rbp/omxplayer] Avoid setting TIME_UNKNOWN on packet with STARTTIME set
Merge pull request #3727 from popcornmix/avoid_dds

[rbp] Avoid crash when useddsfanart is enabled
Merge pull request #3730 from popcornmix/defer_demuxer

[rbp/omxplayer] Defer demuxer pause until buffers full
Merge pull request #3726 from popcornmix/cache_viewport

[GLES] Avoid getting viewport so often
FIX: StereoscopicsManager log spam
Merge pull request #3734 from koying/quickpr

FIX: StereoscopicsManager log spam
[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.