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

Improve logs regarding when key frame is requested

上级 9c75dc60
......@@ -690,7 +690,7 @@ namespace RTC
if (!IsEnabled())
return;
if (this->kind == RTC::Media::Kind::AUDIO || IsPaused())
if (this->kind != RTC::Media::Kind::VIDEO || IsPaused())
return;
for (auto& listener : this->listeners)
......
......@@ -202,9 +202,12 @@ namespace RTC
listener->OnProducerResumed(this);
}
MS_DEBUG_2TAGS(rtcp, rtx, "requesting full frame after resumed");
if (this->kind == RTC::Media::Kind::VIDEO)
{
MS_DEBUG_2TAGS(rtcp, rtx, "requesting key frame after resumed");
RequestKeyFrame(true);
RequestKeyFrame(true);
}
}
void Producer::ReceiveRtpPacket(RTC::RtpPacket* packet)
......@@ -343,7 +346,7 @@ namespace RTC
{
MS_TRACE();
if (this->kind == RTC::Media::Kind::AUDIO || this->paused)
if (this->kind != RTC::Media::Kind::VIDEO || this->paused)
return;
if (force)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论