Apply preroll on virtual tuners when the same multiplex is in use.

Previously, if any tuner in the same input group was already busy,
preroll would not be applied.  Now, if the recording on the other
input is on the same multiplex as the new recording, preroll will be
applied.

Refs #12023

(cherry picked from commit 11e65dfd38ca419b2157f0dbaa19f965647f648c)
MythMusic: add a 'First' resume mode and make 'Off' never resume

This fixes the resume playback feature so that 'Off' never starts playback and
adds a new 'First' mode which starts at the first track in the active playlist.

'Track' and 'Exact' modes remain the same and resume playback at the start of
the track or exact position within the track that was playing when MythMusic
was last exited.

(cherry picked from commit 385011e307c2d5f9d5d6a65663143f27189d1b17)
MythMusic: missed a git add in [385011e307c]

(cherry picked from commit 632c4f875a081dd37d3ed2d49e0722293d2146e8)
MythCenter-wide: fix some clipping on the music playlist editor

When using the Qt painter the time text was being clipped in the small info
panel.

(cherry picked from commit da505d91987e2d3a832288038510971d31c3c4e0)
MythCenter-wide: fix some clipping on the music playlist editor

When using the Qt painter the playlist progress bar appeared to not be
updating because it was being clipped.

(cherry picked from commit e7a9bd0f4d32215f4cf5d26f01244dec42e44249)
MythCenter-wide: fix some clipping on the playlist editor screen

(cherry picked from commit a75cd556aaa602d5e16c4f8e001de9e5a7e669a2)
H264Parser::decode_Header: pic_order_present_flag is not required, so don't
insist on it.

(cherry picked from commit faf7487bd3db2f01d273e1bd7a44cf64f7762181)
DTVRecorder::FindH264Keyframes: Only account for Adaptation Field Control
Offset if payloadStart is set.

(cherry picked from commit 6c6c0cbd4d95957c107e0e7e37b6b4cf70b04de5)
Revert 7abf18a16
MythMusic: fix the playlist editor adding duplicate tracks to the playlist

Selecting some nodes more than once in the playlist editor tree would add
duplicate tracks to the active playlist and the tree because we wasn't checking
if we had already added the tracks for the selected node.

(cherry picked from commit c907a46d2604382b3bad6e44d4574b91e7692bf7)
MythMusic: fix mixed up smart playlist "starts with" and "ends with" criteria

Fixes #12097

Signed-off-by: Paul Harrison <pharrison@mythtv.org>
(cherry picked from commit b582bd009a24954884832866f6b27499d1b553e8)
Fixes #12098 Only dynamically load the libGLESv2 library if OpenGL ES is enabled.

The nvidia driver version 334.21 has included the libGLESv2 library.
Users upgrading to the newer drivers were seeing mythfrontend segfault
because it was dynamically loading this library and then using it
incorrectly (because mythtv had been build with opengles disabled)

(cherry picked from commit 5c7bd7f127e9ef2cb91de2bf0f82a35b7262d423)

Distro maintainers can you pull this in immediately please.
Advertise RAOP service before AirPlay service.

This helps having the AirPlay device being recognised as a full service

(cherry picked from commit 590f336feffe68eb89ce6996eac95ae6a8309930)
Add BonjourRegister::ReAnnounceService()

This allows to force re-announcing an already published service

(cherry picked from commit 9712943f6d2a1add95e3ecfefd0d3150eb2880e0)
Bump API version following 00739e7019e4a14b320022279595da1bc214f4c2
Fix AirPlay occasionally only showing as an audio device on iOS 7.x

We re-announce the AirPlay video service 2s after the first registration followed by every 10s.
This forces the video service to be registered after the RAOP Service. Since the release of iOS 7, AirPlay has been very much unusable.

Thanks to Memphiz from the XBMC team to figuring the cause.

Fixes #11901

(cherry picked from commit 5d2d30bc6af71d06230c6c3d1871dc665d12737c)
Make AirPlay photo sharing works with iOS 7.1

(cherry picked from commit dc99ee7ca11f6dad18a93a4ab959ca4cae16ffd2)
No need to add randomisation to bonjour first registration

(cherry picked from commit bdc75ddcec79e631149d3d42d373694c0fb1ca7b)
Improve AirPlay photosharing

Make the AirPlay photo sharing’s behavior closer to what an Apple TV does:
- Make the photo disappear whenever you exit the photo application
- Allows to play music while showing photos
- Improve transition between photos and videos
- Only make the photo disappear once video playback has started

(cherry picked from commit 9cba5e278763bb6d18603cf9f916ef7c75157953)
Fix settings display on macs

Qt widgets uses a default style that varies between platforms. On Linux, the default text is white, on mac its black.
The color of the text in the old settings aren’t configurable as it is (wouldn’t be difficult to do so)

Most themes are using a dark background, so on mac, using the old type settings is proving difficult as mostly unreadable.

So we redefine the style of most QWidget objects so it looks more similar to Linux.
This is done using Qt stylesheets. Where Qt stylesheets do not provided the intended behavior, we use QPalettes instead

(cherry picked from commit 96ecd539de8e76a880f0013b4b8854da216e17b1)

Conflicts:
	mythtv/libs/libmyth/mythwidgets.cpp