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

kmdewaal noreply at github.com
Sun Dec 1 20:39:14 UTC 2019


  Branch: refs/heads/fixes/30
  Home:   https://github.com/MythTV/mythtv
  Commit: a27754ae7f7ec04f6046fcfd61e336986dc2c750
      https://github.com/MythTV/mythtv/commit/a27754ae7f7ec04f6046fcfd61e336986dc2c750
  Author: Klaas de Waal <kdewaal at mythtv.org>
  Date:   2019-12-01 (Sun, 01 Dec 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

(cherry picked from commit ec2a518f20385b06f0fe730fa6f567409f34d50e)
Signed-off-by: Klaas de Waal <kdewaal at mythtv.org>




More information about the mythtv-commits mailing list