CDRip: Fix Coverity ID 1196562 Division or modulo by float zero

Make sure we get a sector count before proceeding with the rip. It's very
unlikely we would have some tracks but not find any sectors but ...
MythMusic General Settings: Fix Coverity ID 1196561 Unchecked return value

Check the queries to truncate the music tables executed OK
Protect pbs with proper (aka locked) refcounting.

The PlaybackSock must not be immediatly deleted on connectionClosed()
if some other requests are still using it. This leads to segfaults in
the MBE when the SBE disconnects (#11306).
(cherry picked from commit 7b305848b0584bcebc55d6fe5a670ef7d2f55360)

Refs #11306
Signed-off-by: Stuart Auchterlonie <stuarta@squashedfrog.net>
Allow user to force a specific HLS bitrate to record.  Right now there is no

UI to make this easy, and I have mostly used it as a debugging tool.

To use this, the channel and iptv_channel tables need to be updated.

In the channel table, create a separate channel entry for each bitrate.  In other
words, instead of just having a SKYNEWS channel and allowing myth to auto
select the best bitrate for the available bandwidth, create three separate
SKYNEWS channels:  SKYNEWS-1, SKYNEWS-2, SKYNEWS-3.

INSERT INTO `channel` (`chanid`, `channum`, `freqid`, `sourceid`,
`callsign`, `name`, `icon`, `finetune`, `videofilters`, `xmltvid`,
`recpriority`, `contrast`, `brightness`, `colour`, `hue`, `tvformat`,
`visible`, `outputfilters`, `useonairguide`, `mplexid`, `serviceid`,
`tmoffset`, `atsc_major_chan`, `atsc_minor_chan`, `last_record`,
`default_authority`, `commmethod`, `iptvid`) VALUES
(5051,'5-1',NULL,5,'SKYNEWS-1','SKYNEWS-1','',NULL,'','19572',0,32768,32768,32768,32768,'Default',1,'',0,NULL,0,0,0,0,'2014-02-20 21:40:47','',-1,NULL),
(5052,'5-2',NULL,5,'SKYNEWS-2','SKYNEWS-2','',NULL,'','19572',0,32768,32768,32768,32768,'Default',1,'',0,NULL,0,0,0,0,'2014-02-20 21:40:47','',-1,NULL),
(5053,'5-3',NULL,5,'SKYNEWS-3','SKYNEWS-3','',NULL,'','19572',0,32768,32768,32768,32768,'Default',1,'',0,NULL,0,0,0,0,'2014-02-20
21:40:47','',-1,NULL);

In the iptv_channel table, also create a separate channel entry for each
bitrate, and set the 'bitrate' column to be the index of the desired
bitrate.

INSERT INTO `iptv_channel` (`chanid`, `url`, `type`, `bitrate`)
VALUES
(5051,'http://skynews-1.ml.llnwd.net/skynews_sd/smil:mbr_alpha.smil/playlist.m3u8','data',1),
(5052,'http://skynews-1.ml.llnwd.net/skynews_sd/smil:mbr_alpha.smil/playlist.m3u8','data',2),
(5053,'http://skynews-1.ml.llnwd.net/skynews_sd/smil:mbr_alpha.smil/playlist.m3u8','data',3);

I may change this from using an index to the actual desired bitrate.  If the
feed suddenly changes the bitrates they offer, though, that could cause it
to suddenly stop working.

If users find value in being able to select a specific bitrate, a UI will
have to be developed.
Add an "External" recorder to Myth.  This allows myth to read in a Transport Stream via a pipe from an external application.  See http://www.mythtv.org/wiki/ExternalRecorder for documentation.
Extend the time-outs in mythplayer to allow the analog side of the hvr-2250

to work.

Patch by webe3vt@aim.com

Fixes #11402
Revert programs/mythfrontend/scheduleeditor.* to a sane state.

stgit is useful, but when it blowes it, it can create a mess!
Fix path to ExternalRecorder in .pro file
Don't build ExternalRecorder on win32 or mingw
Attempt to get ExternalStreamHandler compiling under qt5.
Another attempt get the ExternalRecorder to compile under WIN
Yet another attempt to get ExternalRecorder to compile under WIN
Attempt to get ExternalRecorder to compile under Qt5
Don't build mythfilerecorder under WIN
Terra: move picture from appearance settings to themechooser

move picture of six theme preview images from appearance settings to
themechooser
Terra: add missing state for audio settings

fixes display when selected
fixup e8684cf6fe