From 6394c620ada01242342904cde9509313efa42050 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 25 Jan 2021 13:23:57 -0500 Subject: [PATCH] add stream index to debug --- src/zm_rtsp_server_device_source.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/zm_rtsp_server_device_source.cpp b/src/zm_rtsp_server_device_source.cpp index 921bdb03e..55e0a57ce 100644 --- a/src/zm_rtsp_server_device_source.cpp +++ b/src/zm_rtsp_server_device_source.cpp @@ -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);