add stream index to debug

This commit is contained in:
Isaac Connor 2021-01-25 13:23:57 -05:00
parent a0df09dcaa
commit 6394c620ad
1 changed files with 3 additions and 2 deletions

View File

@ -99,7 +99,8 @@ void ZoneMinderDeviceSource::deliverFrame() {
} else {
fFrameSize = nal_size;
}
Debug(2, "deliverFrame timestamp: %d.%d size: %d queuesize: %d",
Debug(2, "deliverFrame stream: %d timestamp: %d.%d size: %d queuesize: %d",
m_stream->index,
frame->m_timestamp.tv_sec, frame->m_timestamp.tv_usec,
fFrameSize,
m_captureQueue.size()
@ -149,7 +150,7 @@ int ZoneMinderDeviceSource::getNextFrame() {
// Convert pts to timeval
int64_t pts = av_rescale_q(pkt->pts, m_stream->time_base, AV_TIME_BASE_Q);
timeval tv = { pts/1000000, pts % 1000000 };
timeval tv = { pts/1000000, pts%1000000 };
dumpPacket(m_stream, pkt, "rtspServer");
Debug(2, "pts %" PRId64 " pkt.pts %" PRId64 " tv %d.%d", pts, pkt->pts, tv.tv_sec, tv.tv_usec);