Fix P25 StreamID mismatch: clear stale packets in CodecStream::ResetStats

pull/23/head
Dave Behnke 1 month ago
parent 46166f7c45
commit ada180d6ae

@ -59,6 +59,12 @@ void CCodecStream::ResetStats(uint16_t streamid, ECodecType type)
m_RTSum = 0;
m_RTCount = 0;
m_uiTotalPackets = 0;
// clear any stale packets in the local queue
while (!m_LocalQueue.IsEmpty())
{
m_LocalQueue.Pop();
}
}
void CCodecStream::ReportStats()

Loading…
Cancel
Save

Powered by TurnKey Linux.