diff --git a/mythtv/libs/libmythtv/mpeg/mpegstreamdata.cpp b/mythtv/libs/libmythtv/mpeg/mpegstreamdata.cpp index d69c6ef1c5e..db91c4850c4 100644 --- a/mythtv/libs/libmythtv/mpeg/mpegstreamdata.cpp +++ b/mythtv/libs/libmythtv/mpeg/mpegstreamdata.cpp @@ -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); }