[mythtv-commits] [MythTV/mythtv] 3cf007: The Sat>IP tuner requires keepalive messages, typi...

kmdewaal noreply at github.com
Sat Feb 13 16:45:12 UTC 2021

  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: 3cf00701ba08469c58f5e7e3b2e88fc38b621cc8
  Author: Klaas de Waal <kdewaal at mythtv.org>
  Date:   2021-02-13 (Sat, 13 Feb 2021)

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

  Log Message:
  The Sat>IP tuner requires keepalive messages, typically every 30 or 60 seconds,
to keep working. These messages are implemented using Qt connect functions.
The function involved, startKeepAlive, has one parameter with the timeout value
in milliseconds. The type of this parameter has been changed from int to
std::chrono::milliseconds in commit 7949b0d20b5dc1b63c88ef511ccbef18c71ec8bf.
The connect call now fails because std::chrono::milliseconds has not
been registered with qRegisterMetaType. This causes recordings to fail
after 30 to 60 seconds.
Registration is not needed for the standard compiler-defined types, only for
user-defined types, but apparently it is also needed for the C++ timer types.
Fixed by registering std::chrono::milliseconds.

Refs #trac-13121

More information about the mythtv-commits mailing list