Revert "Resync nzmqt with upstream.  Fixes #10924."

Consistently segfault at startup

This reverts commit 6f39379cfa8f63c84548d9a25cc33264d27b478e.
Add a way to check if the application is exiting.

This is designed to prevent deadlocks and not attempt operations relying on an eventloop running
Increase API following change to MythCoreContext
Prevent deadlock in mythbackend when exiting

This is certainly not a proper fix; sockets should be deleted in the thread they are created.
Deletion here rely on qEventLoop to be running, which doesn’t exist at this point in the runtime, so we wait forever for the invokeMethod to exit.
Prevent deadlock in mythbackend when exiting

This is just a dirty workaround; there should be a better way to do things

Fixes #11783
MythArchive: Fix for deprecated use of PIL python modules

This allows mythburn.py to work with both Python Imaging Library (PIL)
and Pillow the PIL fork.

Fixes #11561.

Signed-off-by: Paul Harrison <pharrison@mythtv.org>
Fix missing header

Was relying on QRunnable being included in another header
Don’t treat EAGAIN or EWOULDBLOCK as error, instead retry up to 3 times

It would probably be more elegant to fix MSocketDevice::readData instead, but as it’s the only location using the MSocketDevice that way, it will be fine for now

Fixes #11517
Make mythlogserver build and use conditional.

When disabled, provide equivalent functionalities; each application running an extra logging thread that will handle syslog, file or db logging.
Remove the dependency on zeromq and nzmqt.

Default is mythlogserver daemon enabled
Properly propagate quiet log option

—quiet was being propagated when not set. Test was reverse or documentation is wrong
Add —nologserver option

This will limit all logs to console, disabling file, db and syslog.
If enabled, mythlogserver will never be started; or if built without mythlogserver, two extra threads won’t be created

Ref #11230 and #11784: not a fix, but allow to bypass the issue
Update ABI following addition to —nologserver
Allow to interrupt housekeeping tasks and fix some leaks

Patch by Raymond Wagner: implement Terminate methods for ArtworkTask and ThemeUpdateTask.
Once a MythSystemLegacy had completed it wasn’t deleted.

This speed up exiting mythbackend greatly, from ~30s to about 5s on my system
Fix compilation when no nzmqt headers are installed and —disable-mythlogserver is used
Fix scaling of inherited images within a group or another widget
Enhance videodescrip statetype to recognize more resolutions

Fixes #10095

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
Set previewgenerator point to NULL after deletion. If by chance the same generator has ended up in the queue twice this may possibly cause a segfault when tearing down the preview generator. Refs #10564
Fix segfault in DecoderBase::PosMapFromEnc() when calling back() on an empty vector. Fixes #10598
EIT scan:  If a channel fails to lock with the SignalMonitor, schedule the scan to restart.

This helps with #11520.  The complete solution would require skipping over
the bad channel, to the scanner could try the rest, instead of just
restarting from the beginning.
The Dreambox needs an external channel changer, so allow it.

Fixes #11365