提交 d1e66c9c authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Better debugging

上级 bb3d14c3
...@@ -347,7 +347,7 @@ namespace RTC ...@@ -347,7 +347,7 @@ namespace RTC
MS_DEBUG_TAG( MS_DEBUG_TAG(
rtp, rtp,
"key frame received [profile:%s]", "key frame received for target profile [profile:%s]",
RTC::RtpEncodingParameters::profile2String[profile].c_str()); RTC::RtpEncodingParameters::profile2String[profile].c_str());
} }
...@@ -396,6 +396,15 @@ namespace RTC ...@@ -396,6 +396,15 @@ namespace RTC
MS_ASSERT(this->lastReceivedSsrc == packet->GetSsrc(), "new SSRC requires re-syncing"); MS_ASSERT(this->lastReceivedSsrc == packet->GetSsrc(), "new SSRC requires re-syncing");
} }
if (isSyncPacket)
{
MS_DEBUG_TAG(
rtp,
"before re-syncing [seqNum:%" PRIu16 ", rtpTimestamp:%" PRIu32 "]",
this->seqNum,
this->rtpTimestamp);
}
this->rtpTimestamp = this->rtpTimestamp =
(packet->GetTimestamp() - this->rtpTimestampBase) + this->rtpTimestampPreviousBase + 1; (packet->GetTimestamp() - this->rtpTimestampBase) + this->rtpTimestampPreviousBase + 1;
...@@ -424,7 +433,7 @@ namespace RTC ...@@ -424,7 +433,7 @@ namespace RTC
MS_DEBUG_TAG( MS_DEBUG_TAG(
rtp, rtp,
"sending sync packet [ssrc:%" PRIu32 ", seq:%" PRIu16 ", ts:%" PRIu32 "sending sync packet [ssrc:%" PRIu32 ", seq:%" PRIu16 ", ts:%" PRIu32
"], from original [ssrc:%" PRIu32 ", seq:%" PRIu16 ", ts:%" PRIu32 ", profile:%s]", "] from original [ssrc:%" PRIu32 ", seq:%" PRIu16 ", ts:%" PRIu32 ", profile:%s]",
packet->GetSsrc(), packet->GetSsrc(),
packet->GetSequenceNumber(), packet->GetSequenceNumber(),
packet->GetTimestamp(), packet->GetTimestamp(),
......
...@@ -804,7 +804,7 @@ namespace RTC ...@@ -804,7 +804,7 @@ namespace RTC
{ {
MS_TRACE(); MS_TRACE();
MS_DEBUG_TAG(rtcp, "sending PLI [ssrc:%" PRIu32 "]", rtpStream->GetSsrc()); MS_DEBUG_2TAGS(rtcp, rtx, "sending PLI [ssrc:%" PRIu32 "]", rtpStream->GetSsrc());
RTC::RTCP::FeedbackPsPliPacket packet(0, rtpStream->GetSsrc()); RTC::RTCP::FeedbackPsPliPacket packet(0, rtpStream->GetSsrc());
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论