Cleanup: Remove M17 debug logging

pull/23/head
Dave Behnke 1 month ago
parent eed188150b
commit 2accf49241

@ -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()));
}
}

@ -626,18 +626,7 @@ bool CM17Protocol::IsValidDvPacket(const CBuffer &Buffer, std::unique_ptr<CDvHea
// get the frame
frame = std::unique_ptr<CDvFramePacket>(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() )

Loading…
Cancel
Save

Powered by TurnKey Linux.