[mythtv-commits] [MythTV/mythtv] ec2a51: Extend instance locking in HDHomeRun stream handler

kmdewaal noreply at github.com
Fri Nov 29 20:51:41 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: ec2a518f20385b06f0fe730fa6f567409f34d50e
      https://github.com/MythTV/mythtv/commit/ec2a518f20385b06f0fe730fa6f567409f34d50e
  Author: Klaas de Waal <kdewaal at mythtv.org>
  Date:   2019-11-29 (Fri, 29 Nov 2019)

  Changed paths:
    M mythtv/libs/libmythtv/recorders/hdhrstreamhandler.cpp

  Log Message:
  -----------
  Extend instance locking in HDHomeRun stream handler

Extend the instance locking already present in HDHRStreamHandler
functions TunerGet and TunerSet to GetTunerStatus.
This fixes a segfault in libhdhomerun, reported in ticket #13519,
that appeared when doing a UK DVB-T/T2 scan with offset frequencies.
The segfault happened because GetTunerStatus was called from the
HDHRSignalMonitor in a different thread than the TunerGet/TunerSet functions.
Extend the instance locking also to the HDHRStreamHandler::run function
where the libhdhomerun functions are called. This should fix the segfault
in the mythbackend startup as reported in ticket #9027.

Refs #9027

Fixes #13519




More information about the mythtv-commits mailing list