Respect results of WOA.
[AE/CA] Only restore the default format if we ask for it.
[AE/CA] Simplify the ResetAudioDevices code and make sure it actually works

The old code failed to reset devices set in Encoded mode and it was
going about it in a fashion that duplicated a lot of code. This removes
all the custom code and uses already exisisting functions and that
actually makes the code functional.
mpegts: revert old change for NOHEADER, we will handle it on PMT instead
[pvr] fix: wrong condition while getting first/last epg date
changed: function parameter should be passed by reference
removed: the extra qualification 'CSysInfo::' is unnecessary
fixed: the parent class already defines a member variable m_processing but of different type. renamed it to avoid confusion.
removed: member variable already defined in parent class.
changed: rename critsection variable to prevent confusion with the cs variable from the parent class.
changed: use empty() instead of size()
mpegts: stop analyzing when pmt for all programs have been found

This disables NOHEADER after finding PMT for all programs to
avoid find_stream_info always exhausting probe size for mpegts.

This is very important for live streams since read speed
will be limited. rtsp, udp and any protocol streaming a live
mpegts will have dramatically faster startup time.

Note, lack of codec parameters for streams can still cause
the full probe size to be exhausted.
ffmpeg: add patch to stop find_stream info when all pmt's are found
linux: allow root user to raise priority
[airtunes] - fix - show metadata/coverart on first song aswell by delaying the update to the "OnPlay" event. (before we wouldn't set metadata/coverart because we get it before playback in our player really starts).
[spectrum] Avoid zero height bars that cause display artefacts
Merge pull request #3832 from wsoltys/fixes

set of small fixes
Merge pull request #3831 from xhaggi/epg-past-data

[pvr] fix: wrong condition while getting first/last epg date
Merge pull request #3837 from elupus/mpegts

Mpegts find_stream_info speed improvement
livetv: dvb subtitle identifiers should be written big endian

Old code was broken for all little endian systems, and from
the look of it all PVR clients (not sure where that shift of
4 bits come from).