提交 a3963a8c authored 作者: José Luis Millán's avatar José Luis Millán

Log the rtp packet details when it fails to be relayed

上级 570bb51e
...@@ -440,6 +440,20 @@ namespace RTC ...@@ -440,6 +440,20 @@ namespace RTC
this->transmittedCounter.Update(packet); this->transmittedCounter.Update(packet);
} }
} }
else
{
MS_DEBUG_TAG(
rtp,
"failed to send packet [ssrc:%" PRIu32 ", seq:%" PRIu16 ", ts:%" PRIu32
"], from original [ssrc:%" PRIu32 ", seq:%" PRIu16 ", ts:%" PRIu32 "], profile:%s",
packet->GetSsrc(),
packet->GetSequenceNumber(),
packet->GetTimestamp(),
ssrc,
this->lastRecvSeqNum,
this->lastRecvRtpTimestamp,
RTC::RtpEncodingParameters::profile2String[profile].c_str());
}
// Restore packet SSRC. // Restore packet SSRC.
packet->SetSsrc(ssrc); packet->SetSsrc(ssrc);
......
...@@ -58,11 +58,7 @@ namespace RTC ...@@ -58,11 +58,7 @@ namespace RTC
// Call the parent method. // Call the parent method.
if (!RtpStream::ReceivePacket(packet)) if (!RtpStream::ReceivePacket(packet))
{
MS_WARN_TAG(rtp, "packet discarded");
return false; return false;
}
// If bufferSize was given, store the packet into the buffer. // If bufferSize was given, store the packet into the buffer.
if (!this->storage.empty()) if (!this->storage.empty())
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论