[mythtv-commits] [MythTV/mythtv] 4192aa: Use const_iterator for QMap m_encoderList

kmdewaal noreply at github.com
Tue Apr 7 20:42:30 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: 4192aab4d31301596b506c47507e8c3d872cc18f
      https://github.com/MythTV/mythtv/commit/4192aab4d31301596b506c47507e8c3d872cc18f
  Author: Klaas de Waal <kdewaal at mythtv.org>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M mythtv/programs/mythbackend/autoexpire.cpp
    M mythtv/programs/mythbackend/mainserver.cpp
    M mythtv/programs/mythbackend/scheduler.cpp

  Log Message:
  -----------
  Use const_iterator for QMap m_encoderList

Use const_iterator, constBegin, constEnd and constFind while accessing
the tvList and pointers to the tvList such as m_encoderList and m_tvList.
This fixes the problem of crashing while deleting a recording.
When deleting, the m_encoderList is accessed by more than one thread.
The QMap is documented to be re-entrant but this appears to be only the case
when the QMap is accessed with the const variants of the member functions.

Fixes #13571




More information about the mythtv-commits mailing list