From 2accf49241825462c26f4a9e0a562e4208da682c Mon Sep 17 00:00:00 2001 From: Dave Behnke <916775+dbehnke@users.noreply.github.com> Date: Sun, 28 Dec 2025 14:38:50 -0500 Subject: [PATCH] Cleanup: Remove M17 debug logging --- reflector/CodecStream.cpp | 4 ++-- reflector/M17Protocol.cpp | 13 +------------ 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/reflector/CodecStream.cpp b/reflector/CodecStream.cpp index 249fc5a..d0b6c2e 100644 --- a/reflector/CodecStream.cpp +++ b/reflector/CodecStream.cpp @@ -129,7 +129,7 @@ void CCodecStream::Task(void) // make sure this is the correct packet if ((pack.streamid == Packet->GetCodecPacket()->streamid) && (pack.sequence == Packet->GetCodecPacket()->sequence)) { - std::cout << "DEBUG: CodecStream Received matching packet streamid=" << std::hex << ntohs(pack.streamid) << " seq=" << std::dec << pack.sequence << std::endl; + // update statistics auto rt =Packet->m_rtTimer.time(); // the round-trip time if (0 == m_RTCount) @@ -205,7 +205,7 @@ void CCodecStream::Task(void) // the fd was good and then the send was successful, so... // push the frame to our local queue where it can wait for the transcoder - std::cout << "DEBUG: CodecStream Pushed streamid=" << std::hex << ntohs(Frame->GetCodecPacket()->streamid) << " seq=" << std::dec << Frame->GetCodecPacket()->sequence << std::endl; + m_LocalQueue.Push(std::move(m_Queue.Pop())); } } diff --git a/reflector/M17Protocol.cpp b/reflector/M17Protocol.cpp index 084a601..9a41ddb 100644 --- a/reflector/M17Protocol.cpp +++ b/reflector/M17Protocol.cpp @@ -626,18 +626,7 @@ bool CM17Protocol::IsValidDvPacket(const CBuffer &Buffer, std::unique_ptr(new CDvFramePacket(m17)); - // DEBUG: Check FrameType - printf("M17_DEBUG: IsValidDvPacket Type=%04X Buf19=%02X CodecIn=%d\n", - m17.GetFrameType(), Buffer[19], (int)frame->GetCodecPacket()->codec_in); - // Need accessor for codec_in. CDvFramePacket has GetCodecIn() but it calls m_TCPack. - // Oh, CDvFramePacket doesn't expose it directly except via cast? - // CPacket has GetCodecIn() ? CPacket does NOT have GetCodecIn(). - // STCPacket has codec_in. - // CDvFramePacket has SetCodecData. - // Let's use GetCodecData if possible? No. - // Let's just print FrameType. It's enough. - - printf("M17_DEBUG: IsValidDvPacket Type=%04X Buf19=%02X\n", m17.GetFrameType(), Buffer[19]); + // check validity of packets if ( header && header->IsValid() && frame && frame->IsValid() )