Quick fix for a segfault in Playlist::shuffleTracks()
(cherry picked from commit dc1b2adc40f119ad1ad6c6367b2da01b6e00aacc)
Add more debug logs in the DataDirect and MythDLMgr code

Refs #10662

Turns out the problem we are seeing is a known bug in Qt 4.7.1 that is fixed
in 4.7.2 (and wasn't there before 4.7.1).

In particular, if your Schedules Direct username is an email address, Qt4.7.1
stupidly puts the username as the part before the @ and the realm as the
portion after the @, even though the realm was already provided.

SO, if you have a Schedules Direct username that is an email address, either
upgrade to 4.7.2 (or higher), or downgrade to 4.7.0 (or lower).
(cherry picked from commit e778f23d0eeabf99be23121cebc190191aa7041f)
Log the Qt version on startup
(cherry picked from commit 3f6ae11d93577e7ea6ed0b7535ed31834a8837b5)
Fix Recorded.exportMetadata()
(cherry picked from commit 40243c935e27260dbb280fed353f34dd5d07df35)
Make ffmpeg compile with gcc 4.7

Fixes #10537

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
Make the video file parser handle both "Series" and "Season" as
equivalent for the English GB translation.

This is the 0.25-fixes version of that fix which attempt to address
this problem while avoiding to break the "Season" matching for the
other translations. The development version will have a more complete
(but more intrusive) fix.

Refs #10613

PS: This is done with the blessing of the English GB translator.
Make incrementing in command line parser start from 0, not default.

This fixes an issue in MythShutdown where telling it to check the
recording status would actually have an opposite effect of ignoring it.
(cherry picked from commit 7f18de069aa60b0a8aae2d1f11285da61bdab107)
Fix destroyMainWindow when gCoreContext is not created yet

Fixes #10718
(cherry picked from commit 922a9caa85a82d09958466fe7c1ac8509e33a421)
Replace unrecognized translated theme template variables in the
Spanish/Spain translation with the original ones.

PS: This is done with the blessing of the translator and the fix for
master will be done by him in his next update.
Remove reference to no-longer-existent file.
(cherry picked from commit eba3a5b786e549e8882f0869eb69a35bd05185be)
Fix the 1299 DB upgrade (DeletedMaxAge update).

The 1299 upgrade modifies DeletedMaxAge for its new meaning, now that
AutoExpireInsteadOfDelete is always enabled.  Previously, 0 meant
"expire when out of disk space" and was the default value; but after
f78f9992 , 0 means "expire immediately" and -1 means "expire when out of
disk space."  Both before and after f78f9992, any positive value means
to expire recording files that many days after deletion.

However, the setting DeletedMaxAge was only ever written to the database
if the user enabled AutoExpireInsteadOfDelete (triggering the
DeletedExpireOptions TriggeredConfigurationGroup) and modified
DeletedMaxAge to some value other than its default of 0.  Therefore,
most users did not actually have a value for DeletedMaxAge in their
databases--whether they had enabled AutoExpireInsteadOfDelete or not.

The DB upgrade needs to change DeletedMaxAge to -1 if and only if
AutoExpireInsteadOfDelete is enabled and DeletedMaxAge has a value of 0
(or is still using the default).  Because of the condition on the
update, it did nothing for users with AutoExpireInsteadOfDelete enabled
but without a value for DeletedMaxAge in the database.  This resulted in
their systems changing from "expire when out of space" to "expire
immediately".

Thanks to Thomas Boehm and Peter on the mythtv-users mailing list for
noticing that their settings didn't carry over through the update.
(cherry picked from commit abfced82a94d2644d1c4df3e332458e947092329)
Revert "Fix editing inetref/season/episode from the PBB."

This reverts commit db123034e322be6af5104063b044933693ad2d25.

Conflicts:

	mythtv/programs/mythfrontend/scheduleeditor.cpp
(cherry picked from commit 8a279eb1d6032804f72aca7722f363992749e905)
Fix updating of metadata info in RecordingRule.

Only set the metadata info from the RecordingInfo if it's not already
set.  This is should be a better fix than was commited in db123034.
(cherry picked from commit 7aebf8caa18f22fdc7ccf48d6b0130deb6e175ca)
Fixes #10728.  Draw a black outline around text subtitles for contrast.

This fixes a regression in external and CEA-608 captions when no black
background is displayed.
Mark 'mythshutdown -l' as specifically removed with alternate argument
(cherry picked from commit 87eb63451aef35e8c5e0dbca07a2b64a24ea2c0f)
MythMusic: Pass the full filename to TagExists() in Metadata::getTagger()

This fixes a bug when reading the metadata from flac files with ID3 tags.
(cherry picked from commit 459e806faf5fe60adbfa42f22f1f1ceddafd56e3)

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
(cherry picked from commit 8c48b71821267f6b1c1374ad07911a6b9cced2c0)
Add missing break statement in PlaybackBox::ShowAvailabilityPopup(). Caught by Coverity.
(cherry picked from commit 9d843edc58edd921b17d4b3b374056451af72536)
Fix assumption that ints would be initialised to zero in JobQueueEntry, this isn't the case with C++. It appears that this would have caused any job that didn't include a chanid to abort even though the code indicates that it's perfectly valid to have a job which doesn't operate on a recording and wouldn't require the chanid. I don't know enough about the intended behaviour to say whether this will fix a user-visible bug ... Discovered by Coverity.
(cherry picked from commit e84a3aaa2e1f4f744d08e31809ec1852429b7af5)
Fix assignment where comparison was intended in FreeSurround::getLatency(). Caught by Coverity
(cherry picked from commit c85ed06d244eaf02b29771d5122166e3d8ef19be)
Fix CID 700722: Allocation too small for string (Coverity) in AudioOutputPulseAudio::ChooseHost()
(cherry picked from commit 389ba609a553688417ccf2b1a8f3863ffc919bf4)