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

log full frame and profile

上级 1edb6181
......@@ -334,13 +334,14 @@ namespace RTC
{
bool isKeyFrame = false;
if (Codecs::IsKnown(this->rtpStream->GetMimeType()) &&
Codecs::IsKeyFrame(this->rtpStream->GetMimeType(), packet))
if (Codecs::IsKnown(this->rtpStream->GetMimeType()) && Codecs::IsKeyFrame(this->rtpStream->GetMimeType(), packet))
{
isKeyFrame = true;
MS_DEBUG_TAG(rtp, "key frame received [profile:%s]",
RTC::RtpEncodingParameters::profile2String[profile].c_str());
MS_DEBUG_TAG(
rtp,
"key frame received [profile:%s]",
RTC::RtpEncodingParameters::profile2String[profile].c_str());
}
if (!Codecs::IsKnown(this->rtpStream->GetMimeType()) || isKeyFrame)
......
......@@ -290,11 +290,6 @@ namespace RTC
return;
}
if (Codecs::IsKeyFrame(rtpStream->GetMimeType(), packet))
{
MS_DEBUG_TAG(rtp, "key frame received [ssrc:%" PRIu32 ", seq:%" PRIu16"]", packet->GetSsrc(), packet->GetSequenceNumber());
}
RTC::RtpEncodingParameters::Profile profile;
try
......@@ -306,6 +301,16 @@ namespace RTC
return;
}
if (Codecs::IsKeyFrame(rtpStream->GetMimeType(), packet))
{
MS_DEBUG_TAG(
rtp,
"key frame received [ssrc:%" PRIu32 ", seq:%" PRIu16 ",profile:%s]",
packet->GetSsrc(),
packet->GetSequenceNumber(),
RTC::RtpEncodingParameters::profile2String[profile].c_str());
}
// If paused stop here.
if (this->paused)
return;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论