Add a way to hide the player window in the HLS .qsp test page.
HLS/--avf  encoder fixes.

- Fix blockiness at stream startup.  Due to the video frames buffered in the
  encoder, the frames we were tagging as keyframes in the output files
  weren't actually the keyframes.
- Simplify profile and level calculations.  If output width is over
  480 pixels or output video bitrate is over 600Kbit, then use Main 3.1,
  otherwise use Baseline 3.0.
- Change default output width and bitrate to 480 and 600Kbit so that
  Baseline 3.0 is used by default.
- Set keyframe distance to 30 for --avf mode.
- Don't look for the MARK_UPDATED_CUT markup when in --avf mode
- Don't clear the seektables when running in --avf mode
Rework logserver startup to remove race condition

Seems the loggingthread and logserverthread were in a race condition that
would show itself as a deadlock nearly always on my development box, but never
on my production box.
More HLS encoder fixes.

- Offset starting timecode to 1 instead of 0 so libavformat sees it as valid.
- Set extended_data field in audio AVFrame to squelch libavcodec warning.
Remove Painter settings on Mac OS X

MythFrontend requires OpenGL for proper operation, and mythtv-setup requires Qt.
This is a quick and dirty way to remove the guesswork for the user and automatically have what works.

MythMainWindow::Init now can take an optional argument specifying which theme painter to use and do not rely on user configuration

Fixes #10469
libmyth: Prevent an access violation by the ALSA library

In audiooutputalsa.cpp, AudioOutputALSA::GetALSADevices calls the
ALSA API snd_device_name_hint with a card index of -1 to obtain a list
of hints for all cards.  Unfortunately, with libasound.so.2.0 this API
can cause an access violation when the card index is -1.

Running with valgrind shows that snd_device_name_hint makes reference
to previously freed memory when the card index is -1.

This patch enumerates the cards using other ALSA APIs, thus avoiding
the SEGV.

Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>
libmyth: Avoid a divide by 0 exception in AudioOutputBase

If MythMusic starts when the default audio is ALSA and if the device
is in use by another process then snd_pcm_open can fail.  In this
case AudioOutputBase::SetAudiotime can cause a divide by 0 exception
because this->effdsp is 0.

This patch checks the value of effdsp and avoids the division if it's 0.

Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>
Fixes #10926. Safely teardown MythPainters.

The deadlock was actually the least of our problems.
Since MythPainter::DeleteFormatImagePriv() is a pure
virtual in MythPainter calling ExpireImages() in
the dtor is unsafe. This puts the teardown code
into a Teardown() method which is called from all
the child classes where it is safe to do the teardown.
Remove unused files from mythmusic
Fix ignore on external/zeromq/src/libzmq.pc
Fix for Synaesthesia memory corruption

We were allocating just half the required space and consequently
writing beyond the end of the array. This consistently caused
segfaults for me when using the Synaesthesia visualiser.

This fix appears to be consistent with the code used in other projects
which were also derived from the original Synaesthia project.

e.g. GStreamer/Source/gst-plugins-ugly/gst/synaesthesia/synaescope.c
Attempt several retries should setting ALSA hw buffer time failed.

For some people, the call to snd_pcm_hw_params_set_buffer_time_near fails with an invalid argument error.
So attempt to loop several times until we find a value that work.

Fixes #10899
Fix animated image loading.

Fixes #10891.
Updated Normwegian Bokmal MythFrontend, MythGame, MythMusic, MythNews
and MythWeather Translation from Rune Evjen

Thank you Rune!

Refs #10929

Signed-off-by: Nicolas Riendeau <nriendeau@mythtv.org>
Fix segfault after music scan completes.
Updated Estonian MythFrontend, MythGallery, MythGame, MythMusic,
MythNews and MythWeather translation from Marko Punnar

Thank you Marko!

Closes #10931

PS: There are a few empty entries that were confirmed complete, I'll
be sending you a list of these shortly.

Signed-off-by: Nicolas Riendeau <nriendeau@mythtv.org>
Merge remote-tracking branch 'upstream/master'
Disable -Woverloaded-virtual.

We're planning to address these post 0.26 so just disable these warnings for now so
other warnings are more prominent.
Fixes #10888. Fix IPTV LiveTV Channel changes.
Fixes #10870. Fixes StreamHandler Start()/Stop() race.