[mythtv-commits] [MythTV/mythtv] fd2df5: Fix warning message logic in DVBSignalMonitor

kmdewaal noreply at github.com
Wed Aug 3 18:24:28 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: fd2df57aeaed1d0acc34d278734d11f94a033ad4
      https://github.com/MythTV/mythtv/commit/fd2df57aeaed1d0acc34d278734d11f94a033ad4
  Author: Klaas de Waal <klaas at 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.




More information about the mythtv-commits mailing list