Mailing List Archive

[MythTV/mythtv] fd2df5: Fix warning message logic in DVBSignalMonitor
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: fd2df57aeaed1d0acc34d278734d11f94a033ad4
https://github.com/MythTV/mythtv/commit/fd2df57aeaed1d0acc34d278734d11f94a033ad4
Author: Klaas de Waal <klaas@kldo.nl>
Date: 2022-08-03 (Wed, 03 Aug 2022)

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

Log Message:
-----------
Fix warning message logic in DVBSignalMonitor

The status value mok is passed to the lambda functions log_message and
update_rmflags via capture. This however captures the value at
the line where the lambda function is defined; it does not copy
the actual value of variable mok resulting in erroneous error messages.
This is now fixed by adding a & to the capture variable, specifying
capture by reference which means that the actual variable value is used.
This bug is introduced in commit 7c6cee5b031e1eafe609b0740bb7b930ad7b7f03
as part of the continuous fixing of clazy/tidy warnings.


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