Fix crash at the end of mythtranscode

VideoDecodeBuffer inherit from QRunnable which has an autodelete flag set by default, so stopping the thread will automatically delete it.
DVD PTS discontinuities are now handled by 'flattening' the timecodes of incoming packets. This prevents AVFormatDecoder getting stuck buffering video frames when the timecodes jump backwards.

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
VTS title and clean up menu looping detection.

Querying the number of buttons as soon as a subpicture stream change
notification appears is generally not possible as the button
information is carried in NAV packets, which probably haven't been
read yet.

Fixes #11445

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
fix some links to the "new" wiki location
Update angle information and chapter times that was indirectly
completely disabled by the fix for #11288

Fixes #11372, Refs #11288

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
Subtitles: Change the increments for adjusting the text subtitle delay.

The small increment is increased from 10ms to 50ms, and the large
increment is increased from 100ms to 250ms.  Subtitle synchronization
is much less sensitive than A/V synchronization, so we can get to a
reasonable value with fewer keypresses.
AV subtitles: fix redrawing issue and conflation with text zoom factor.
Use the correct index for program.previouslyshown in the query result.

Signed-off-by: Jim Stichnoth <jstichnoth@mythtv.org>
(cherry picked from commit 25aa598fda8fce1d1ed36c68b9da75ebfd1c7476)
OpenGLVideo: Fix a double free in AddFilter() when OptimiseFilters() fails

Fixes #11430
MythUI: Fix use after free in MythUIEditBar

The call to ReleaseImages() in MythUIEditBar's dtor caused a free memory read
since SetRedraw() accesses its parent whose dtor has already been called.

Calling ReleaseImages() from MythUIEditBar's dtor also isn't necessary since the
images in m_images are children of MythUIEditBar and are automatically deleted
by Qt.

Fixes #11458, Refs #11402
mythzmserver: Add a proper check for a failed call to mmap()

Should be checking for MAP_FAILED not NULL. Also add some additional debugging
showing why we failed to open the mmap file. Fixes #11187.

(cherry picked from commit 52b277397431dd88a337e46a7d64fea89c8037c0)

Signed-off-by: Paul Harrison <pharrison@mythtv.org>
Remove a stray comma in music-ui.xml
MythMusic: Various cleanups/fixes to radio streaming

* Always save and load the icon from the same location (must of changed my mind
  where to  store the icon at some point and not changed both locations it's
  used)

* Fix a segfault after editing a stream (a stale pointer was being used)

* Various fixes to ensure the correct metadata is displayed after editing a
  stream

Fixes #11313.
MythMusic: Add missing default 4:3 stream-ui.xml theme file

Refs #11369.
Enable proper display of elapsed time when paused with VAAPI.

Make sure av_pause_frame is updated so that the player can pick up the
current frame number while paused.  Refs #10962
Change MythDate::toString() to return an empty string for invalid inputs.

It's possible a "0000-00-00 00:00:00" might be somewhat acceptable in
some rare cases because the all 0s value obviously represents a
special value.  The UTC to local conversions added in 0.26, however,
now causes it to change to a less obviously special, and perhaps even
misledaing, not all 0s value.  Since MythDate::toString() was a
Myth-specific replacement for QDateTime::toString() and
QDate::toString() and those functions return an empty string for
invalid inputs, we probably should too.

Fixes #11405 .
Fix auto-width calculation in mythtranscode.

Issue discovered, corrected, and tested by 'rich0' in IRC.  Thanks.
Add some descriptions to the classic menu items
Add some descriptions to the MythMusic menu items
mythgallery: Restore position after a rename in icon view

Move back to the same selected item after renaming and image. It was annoying
to have the selected item move to the first item after a rename when renaming
several images.

Also make the EDIT keybinding do the rename image action.