提交 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 ...@@ -690,7 +690,7 @@ namespace RTC
if (!IsEnabled()) if (!IsEnabled())
return; return;
if (this->kind == RTC::Media::Kind::AUDIO || IsPaused()) if (this->kind != RTC::Media::Kind::VIDEO || IsPaused())
return; return;
for (auto& listener : this->listeners) for (auto& listener : this->listeners)
......
...@@ -202,10 +202,13 @@ namespace RTC ...@@ -202,10 +202,13 @@ namespace RTC
listener->OnProducerResumed(this); 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) void Producer::ReceiveRtpPacket(RTC::RtpPacket* packet)
{ {
...@@ -343,7 +346,7 @@ namespace RTC ...@@ -343,7 +346,7 @@ namespace RTC
{ {
MS_TRACE(); MS_TRACE();
if (this->kind == RTC::Media::Kind::AUDIO || this->paused) if (this->kind != RTC::Media::Kind::VIDEO || this->paused)
return; return;
if (force) if (force)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论