Allow HLS test page to filter recordings by Recording Group

Use GetFilteredRecordedList and GetRecGroupList Dvr Service
endpoints.
.gitignore the Makefile in external/libsamplerate
Content Services API fixes and minor enhancements

Tell Script engine to use ScriptableContent instead of Content
to match the other services.

Fix case on StorageGroup argument to GetHash method definition.

Allow GetRecordingArtworkList(), GetProgramArtworkList(), and
GetHash() to be used in scripts.
Add a Dvr GetTitleInfoList Services API endpoint

Currently this returns a list of unique titles/InetRef combinations,
but it could be extended to include other info later.
Treat 'devel/*' branches as 'master' in the ThemeChooser

If we assume that devel/* branches are up to date with master,
this will allow devel/* users to download and install themes
if they choose.
Attempt to fix Qt5 buildbot compile issue for titleInfo/titleInfoList
HTTPLiveStream::GetLiveStreamInfo fixups.

Don't give the caller the URLs or source dimensions if they
are not valid yet because transcoding has not started.
Support higher tuning frequencies

Static analysis (coverity) detected that some of the
math computing frequencies was performed in 32 bit
arithmetic, even though the result was 64 bits.  This
could result in an integer overflow.  Use the Qt
long long type to move to 64 bit calculations.

Fixes coverity 700586
Fixes #11594

Signed-off-by: Daniel Kristjansson <danielk@cuymedia.net>
Check user themes directory for writability before downloading theme.

This patch will check that the user's themes directory (normally
~/.mythtv/themes on a *nix system) is writable when the user enters
the Theme Chooser screen and warn the user if it is not writable.

Another check happens at theme download time to warn the user if
the selected theme can not be downloaded and installed if the themes
directory is not writable.

Fixes #10634.
Fix some mythcommflag command line option handling.

Honor the --outputmethod command line option and fix a bug in
the handling of the --commmethod.

Fixes #10989 using slightly tweaked patch by Bryan from mlewallpapers.
[PATCH] Patch for feasible divide by zero

Static analysis (coverity) detected a feasible (although
not likely) code path such that the variables testEdges
and testNotEdges could be zero, which would result in
a divide by zero.  Add in a check for the zero case.

Fixes coverity 746806 and 746807

Fixes #11596.

Signed-off-by: Chris Pinkham <cpinkham@mythtv.org>
[PATCH] Patch to bypass code when no pixels checked

There is a feasible (although I believe very unlikely)
code path where no pixels will be checked, resulting
in a number of variables not being appropriately
set.  This code will bypass the codes if no pixels
were checked.

Fixes coverity 746805 (possible division by zero)

Fixes #11587.

Signed-off-by: Chris Pinkham <cpinkham@mythtv.org>

I have looked at the code and can see no negative effects if we
skip the blank frame section and letter/pillar-box detection code
in the unlikely event that we didn't check any pixels.  If we did
not check any pixels, there are numerous variables within this
section of code which are meaningless preventing valid detection.
Attempt to fix double-install sometimes required in Theme Chooser.

I believe there is a race condition between closing the busy popup
dialog and sending the JumpTo to reload the theme after it is
installed. This patch handles the reload in a separate event
to allow the busy popup to close before jumping out of the
Theme Chooser screen.

References #10334.
Reset some stats and a buffer when MythDownloadManager gets a redirect.

Fixes #11218.
Add a --download option to mythutil.

"--download --infile URI --outfile FILENAME" will download the file
pointed to by 'URI' using MythDownloadManager and save it as 'FILENAME'.

URI is expected to use one of http://, ftp://, or myth:// protocols
since these are the only ones currently supported by MythDownloadManager.
AVFormatDecoderDVD: Fix coverity 700543. Check that the stream id is >= 0 before implicitly casting it to uint.
MBroadcastSocketDevice: Fix Coverity ID 746753 Unchecked return value

In MBroadcastSocketDevice::~MBroadcastSocketDevice(): Value returned from a
library function is not checked for errors before being used. This value may
indicate an error condition.
DVBCam: Fix coverity 700258. Unchecked return value of ioctl. If the ioctl fails then numslots is going to be populated with a random value, as the caps struct will be uninitialised.
MHSlider: Fix Coverity ID  700820 Uninitialized scalar field

In MHSlider::MHSlider(): Several scalar fields is not initialized by the
constructor.
Add errorno to the error message added in [a1955f6]