Fix build on big endian system

Fixes #11136

(cherry picked from commit 0967877b0a71e15e6682b29171928524deb8bc7e)
Revert "Fix build on big endian system"

This reverts commit 87152adc39ea8e15f1b67df4d80e55f03c718fd8.
Fix build on big endian system

Fixes #11136

(cherry picked from commit 1b56fcc29ab868b2f06ec7e0f8d02c01581daae5)
Load themes for the current tagged release in addition to the branch.

(cherry picked from commit 2144495d82978c04fee081a2005d6a3ecf79b3cf)
Updated German MythFrontend and MythMusic translation
from Florian Bittner

Thank you Florian!

Closes #12152

Signed-off-by: Nicolas Riendeau <nriendeau@mythtv.org>
Add additional european short date formats
from Angela Schmid

Thank you Angela!

Closes #12064

Signed-off-by: Nicolas Riendeau <nriendeau@mythtv.org>
Locale file for de_CH
from Eduard Iten

Thank you Eduard!

Closes #12102

Signed-off-by: Nicolas Riendeau <nriendeau@mythtv.org>
Only use VDPAU hwaccel API for mpeg container

The use of VDPAU hwaccel API was an attempt to fix #11377. However, the underlying problem is a FFmpeg libavformat bug (https://trac.ffmpeg.org/ticket/2915).

FFmpeg 1.2's VDPAU hwaccel is clearly unstable. 24fps AVI would play at half that rate, cause crashes with nouveau or visual distortion with AMD

As the aim is only to fix #11377, only enable the hwaccel API for the mpeg container.

Add a "vdpauhwaccel" setting override to completely disable VDPAU hwaccel under all circumstances

Fixes #12162
Remove hack forcing MPEG1 video to be treated as MPEG2

This hack was added to fix #287, which was a problem with XvMC decoding.
It makes no sense today, and actually break genuine MPEG1 videos.

Fixes #12160

(cherry picked from commit fee00c36f79dd06432392dd9d4891efc5d253fd2)
Don't attempt to issue DB query if there's nothing to do

Prevent harmless SQL statement error messages to be logged when the position map is empty

Regression introduced in b4be8e24f9fab5b6a71f62df8e2c0403bedf4805

Fixes #12161

(cherry picked from commit d90af2d6b09bc5197a39d1e1d09baff2aafe9a2a)
Try to fix corner cases when stopping in-progress recordings.

The backend uses EncoderLink::MatchesRecording(), which in turn uses
ProgramInfo::IsSameRecording(), to determine which recorder to stop.
Unfortunately the logic used is too strict in some respects and too
loose in others.  It is too strict in that it requires an exact match
on ProgramInfo::recstartts when there are many places in the code
where the exact recstartts used by the recorder is not known.  The
result is the stop recording request is ignored in those cases.  It is
too loose in that it doesn't only uses chanid and recstartts.  The
result is that it can stop the wrong recording in some cases.

This change attempts to resolve at least some of the issues.  Changed
PI:IsSameRecording() to also check the program title.  Changed
EL::MatchesProgram() to check PI::IsSameProgramWeakCheck() and the
inputids instead of PI::IsSameRecording() when the inputid is known.
This handles the cases where the exact recstartts isn't known.
Finally, removed a work-around for this problem in ScheduleCommon that
didn't always work.

(cherry picked from commit 8116fde7f46494dda0c7ca7658c3bf22e9340b34)
Revert "Try to fix corner cases when stopping in-progress recordings."

This broke livetv for many people. The auto-expirer would delete the in-use file
during playback.

This reverts commit a1b5067688bce06141ecd10b33dea91091f5e9a7.
Revert "Only use VDPAU hwaccel API for mpeg container"

Better fix coming

This reverts commit 2502f4a3c45b76684d1d37b9b6d39112c3fffd09.
Do not use VDPAU hwaccel API for mpeg4 videos

FFmpeg 1.2's VDPAU hwaccel is clearly unstable. 24fps mpeg4 in AVI would play at half that rate, cause crashes with nouveau or visual distortion with AMD

Add a "vdpauhwaccel" setting override to completely disable VDPAU hwaccel under all circumstances

Fixes #12162
Fix leak in logger

setThreadName can be called twice, obfuscating the previously allocated string

Fixes #12131

(cherry picked from commit b15009783583edc5c663d09ebb2a7baeeeab2c96)
In the playbackbox, allow jumping to an episode's display group.

Provides keybindings and a menu entry such that if you've highlighted
an episode in the All Programs view, you can see that episode
highlighted within its title's display group.  For example, you see
that a new episode has recorded, and you can quickly jump to the
episode's display group to see if there are any other episodes you
should catch up on first.

Thanks to Angela Schmid for the patch.

Fixes #12157

Signed-off-by: Jim Stichnoth <jstichnoth@mythtv.org>
(cherry picked from commit a375bccfa542c7d049e526dbc66fa67c35f2fbd3)
Fix an out of bounds read in the test harness when testing
DVBContentIdentifierDescriptor. The length value inside the
data block was longer than the data block itself, thus leading
to the DVBContentIdentifierDescriptor code reading off the
end of the array.

This is the cause of the occasional unit test failures on
some of the buildslaves, due to the test harness segfaulting.

Thanks to dekarl for the tweak to the data.

(cherry picked from commit 295d97e92331609a40a03c51ea3f3ddc6ba2cc89)
Fix crash when exiting LiveTV

This can occur mostly when liveTV is started using mythavtest. Should playback fail for some reasons and we exited: kaboom

(cherry picked from commit ec08df5292824c64f62eea6fcebb7c8d870c4715)
Fix search of image artwork in folder

The first character of the path was dropped, causing the search for images to always fail

(cherry picked from commit a6b3cfb6b1bb5e585e059723570591ca18446930)
Add search for “jpeg” type, and make search for image case insensitive.

Note: That entire code should be re-written
(cherry picked from commit 2d73bf8562dc5735a47fb17c84ff214871c2cba6)