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

log full frame and profile

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