Mailing List Archive

[MythTV/mythtv] 3cf007: The Sat>IP tuner requires keepalive messages, typi...
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: 3cf00701ba08469c58f5e7e3b2e88fc38b621cc8
https://github.com/MythTV/mythtv/commit/3cf00701ba08469c58f5e7e3b2e88fc38b621cc8
Author: Klaas de Waal <kdewaal@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


_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits