Remove a duplicate SendMythSystemPlayEvent("PLAY_STARTED") and ensure we only send PLAY_STOPPED if we sent [PLAY/LIVETV]_STARTED. This means that neither STARTED or STOPPED are sent if playback fails. Indirectly fixes coverity 746793
HouseKeeper: remove from the list of listeners in the destructor

This fixes a segfault when exiting the FE caused by the HouseKeeper receiving
messages after it had been deleted.
LCDServer: fix coverity ID 700425 Unchecked dynamic_cast

In LCDServer::readSocket(): Dynamic_cast may fail and return null if the type
cast is incompatible. Not really possible for sender() to be anything other
than a QTcpSocket* in this case but Coverity doesn't know that.
Simplify the CC708CharacterAttribute constructor.

Fixes Coverity 700905 by explicitly initializing all fields of
CC708CharacterAttribute in its constructor.  Originally, most fields
were left uninitialized, presumably for performance reasons, but there
does not appear to be a performance difference even on an ION
frontend.
Subtitles: Remove long-unneeded methods.  Improve performance.
MythSystem: Fix copy/paste in [8532584f]
Fix potential HLS leakage in mythtranscode, found by Coverity

Fixes 'Resource Leak' Coverity IDs 1025906, 1025907, and 1025908 along
with a few other potential resource leaks of similar nature regarding
HLS and the AVFormatWriters it uses in transcode.cpp.
Fix cut-and-paste error in test_audioconvert's .gitignore
Check the return value of rename in httplivestream.cpp

Static analysis (coverity) detected un unchecked return
value from rename.  Add in the check, and log the error
in the (unlikely) event the rename fails.

Fixes coverity 746746
Fixes #11590.

Signed-off-by: Chris Pinkham <cpinkham@mythtv.org>
Fixes for several mythtranscode Coverity IDs

- Initialize m_last_audiotime in AudioReencodeBuffer ctor. ID 746889.
- Initialize totalFrames in Cutter ctor. ID 1025912.
- Check return value of preview image rename() call in main.cpp.  ID 746754.
- Execution can not reach "NULL" in mpeg2fix.cpp. ID 746800.
Several mythfrontend Coverity fixes

"Uninitialized pointer field" issues:
- m_hd in AudioTest. ID 746876.
- m_MPCM in AudioAdvancedSettings. ID 700946.  (unused variable removed)
- m_progressDialog in VideoSetupWizard. ID 746882.
- m_preview in ThemeChooser. ID 746883.
AudioReencodeBuffer: Remove m_bits which isn't used anywhere

Refs Coverity ID 746889
AudioTest: also initialise m_button missed in 54328bd25

There's a code path in the ctor where m_button could be left uninitialised and
that upsets Coverity. Refs ID 746876.
AudioAdvancedSettings: also remove m_triggerMPCM missed in 54328bd25

Refs Coverity ID 700946.
DTC::BlurayInfo: fix some uninitialised variables in the ctors

Fixes Coverity IDs 700892 and 700893.
ChannelInfoList: fix coverity ID 700894 Uninitialized scalar field

In DTC::?ChannelInfoList::ChannelInfoList(): A scalar field is not
initialized by the constructor.
RecRuleList: fix coverity ID 700895 Uninitialized scalar field

In DTC::RecRuleList::RecRuleList(): Several scalar fields are not initialized
by the constructor.
ViewScheduled: fix coverity ID 746886 Uninitialized pointer field

In ViewScheduled::ViewScheduled(): Several fields are not initialized in the
constructor.
CustomPriority: fix coverity ID 746878 Uninitialized pointer field

In CustomPriority::CustomPriority(): Several fields are not initialized
in the constructor.
CustomEdit: fix coverity ID 746877 Uninitialized pointer field

In CustomEdit::CustomEdit(): Several pointer fields are not initialized
in the constructor.