[mythtv-commits] [MythTV/mythtv] 961704: MythPlayer: Fix potential deadlocks when pausing/u...

Mark Kendall noreply at github.com
Fri Oct 11 09:56:30 UTC 2019

  Branch: refs/heads/devel/2019-render
  Home:   https://github.com/MythTV/mythtv
  Commit: 961704c88c0222162ce8ddd85fe1803374133e70
  Author: Mark Kendall <mark.kendall at gmail.com>
  Date:   2019-10-11 (Fri, 11 Oct 2019)

  Changed paths:
    M mythtv/libs/libmythtv/mythplayer.cpp

  Log Message:
  MythPlayer: Fix potential deadlocks when pausing/unpausing the decoder

- call qApp::processEvents to ensure decoder callbacks into the UI
thread are processed

  Commit: 76bca2a65d51b148fb446dbd9de8f2213fba5fe0
  Author: Mark Kendall <mark.kendall at gmail.com>
  Date:   2019-10-11 (Fri, 11 Oct 2019)

  Changed paths:
    M mythtv/libs/libmythtv/decoders/avformatdecoder.cpp

  Log Message:
  AvFormatDecoder: Refactor OpenFile for better live tv support

- default, non-livetv behaviour should be largely unchanged
- livetv startup in testing is now faster and more reliable

- codec initialisation is now nested in 2 loops
- the inner loop attempts to open the input stream for up to 5seconds,
resetting the ringbuffer after each attempt to ensure all available data
is used for the scan.
- when complete, the second/outer loop will try to ensure the necessary
stream parameters are available - again forcing a retry when it fails.
The AVFormatContext is closed before trying again to avoid errors
regarding re-opening codecs.
- certain audio parameter checks are disabled as they often fail
(problem here is often the Audio Description Channel) but subsequent
initialisation is fine.

Compare: https://github.com/MythTV/mythtv/compare/c4db49a3873a...76bca2a65d51

More information about the mythtv-commits mailing list