Skip to content

Commit 236073a

Browse files
committed
BUGFIX: null reference when trying to perform old style lookup of timestamp when debugging is enabled;
1 parent 7c2bfb3 commit 236073a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/common/network/FrameQueue.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,10 @@ uint8_t* FrameQueue::generateMessage(const uint8_t* message, uint32_t length, ui
301301
}
302302

303303
if (timestamp != INVALID_TS) {
304+
uint32_t prevTimestamp = timestamp;
304305
timestamp += (RTP_GENERIC_CLOCK_RATE / 133);
305306
if (m_debug)
306-
LogDebugEx(LOG_NET, "FrameQueue::generateMessage()", "RTP streamId = %u, previous TS = %u, TS = %u, rtpSeq = %u", streamId, m_streamTimestamps[streamId], timestamp, rtpSeq);
307+
LogDebugEx(LOG_NET, "FrameQueue::generateMessage()", "RTP streamId = %u, previous TS = %u, TS = %u, rtpSeq = %u", streamId, prevTimestamp, timestamp, rtpSeq);
307308
updateTimestamp(streamId, timestamp);
308309
}
309310
}

0 commit comments

Comments
 (0)