Fixes #10548. Free DB connection while truncating for slow deletes.
Attempt to plug a memory leak in MPEG2 "lossless" transcode

Seems that when we hit the 2000 frames in use (i.e. queued), we very
ungracefully reject more frames, "No more queue slots!", and then we promptly
leak the packet we were going to put in that frame.  Added a few more
av_free_packet() to hopefully plug the leak.

Also, since it seems the HDHR Prime (and perhaps other sources) record MPEG2
that can sometimes have exceedingly large GOP sizes.  This code was mostly
designed for use with ivtv and others with predicably small GOP sizes.  To
try to get the "No more queue slots!" to disappear, I have increased the
max frames from 2000 to 20000.  This could still use a rework, but hopefully
will fix the short-term issue.

Thanks to rkulagow for reporting this mess. :)
Fix HLS transcoding after 199342ef7a.

Add a missing + in a += when setting the timecode being saved
in the audio reencode buffer.
Squelch an inuseprograms DB warning during HLS transcode.

If the file's hostname isn't known when we go to insert into
inuseprograms, use our own hostname for the rechost column.

Closes #10520.
Silence some MythMusic initialisation warnings
Missing parenthesis.
Updated Spanish/Spain MythFrontend, MythGallery, MythGame and
MythMusic translation from Antonio Marcos Lopez Alonso.

(The other files contained no new translations.)

Thank you Antonio!

Closes #10904

Signed-off-by: Nicolas Riendeau <nriendeau@mythtv.org>
Add a new required 'copyrightlogo' widget to all weather screens

Some newer sources require more than a text copyright string.
Unlock the startstop mutex while waiting for timer startup

If we start and stop the timer too quickly, the lock can be still held by
the start() function, and the stop() sits deadlocked waiting for it.  As this
delay is primarily to wait for the thread to come up before returning from
start(), it should be safe to release the mutex while waiting to allow the
stop() to take effect.

If this doesn't fix the issue, please reopen the ticket

Fixes #10867
Fix verboseHelp to actually show the correct default mask
Delete logThread in logStop

Seems I never actually deleted the logThread when stopping logging.  This was
causing issues as then the timers don't get stopped (as that's in the dtor)
on quick runs, causing nasty messages, and maybe even crashes.

Refs #10867
Add hint for MySQL timezone error.

This adds a comment to the logs about mysql_tzinfo_to_sql for how to
apply the necessary time zone information to MySQL during startup.

Fixes #10906
Fix a segfault in mythweather when search for location

If a script returned invalid data we would segfault because no bounds
checking was performed.

While here I refactored the loops immediately around the problem to
use proper iterators for speed and simplicity.
Fix a stupid typo in last commit.
More scheduler/recorder deadlock avoidance.

RecordPending() can block so it needs to have schedLock released
around calls to it too.
Add 'copyrightlogo' type to all scripts, but left unused for now
Fix backend webserver when html dir path contains a link.

Use canonicalPath() consistently in the directory path checking.
This fixes an issue where the backend webserver would not serve
up static content if the html directory was in a path which
contained one or more links.
Bump mythweather script versions to force a cache refresh
Rework IP selection so link-local is always used.

This adds an option to mythtv-setup that makes link-local addresses
listened to by default.  This behavior can still be disabled, to block
off network access.
Make all scripts actually output copyrightlogo

For now, they all will be returning empty strings, which will be made to give
no logo.  However, it will be enforced that they return the string (just like
copyright)