Skip to content

Commit

Permalink
Lock access to m_tsWritingListeners in mpegstreamdata.cpp
Browse files Browse the repository at this point in the history
Use the m_listenerLock for all usage of m_tsWritingListeners
in mpegstreamdata.cpp. This lock was already used in all
places except one.
  • Loading branch information
kmdewaal committed Nov 30, 2024
1 parent a6f7b11 commit 0b5733e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/mpeg/mpegstreamdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,8 @@ bool MPEGStreamData::ProcessTSPacket(const TSPacket& tspacket)

if (IsWritingPID(tspacket.PID()))
{
QMutexLocker locker(&m_listenerLock);

for (auto & listener : m_tsWritingListeners)
listener->ProcessTSPacket(tspacket);
}
Expand Down

0 comments on commit 0b5733e

Please sign in to comment.