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

SimulcastConsumer: improve keyFrameForTsOffsetRequested stuff

上级 185f232a
...@@ -767,7 +767,16 @@ namespace RTC ...@@ -767,7 +767,16 @@ namespace RTC
if (this->keyFrameForTsOffsetRequested) if (this->keyFrameForTsOffsetRequested)
{ {
// Give up and use the theoretical offset. // Give up and use the theoretical offset.
tsExtraOffset = 0u; if (tsExtraOffset > maxTsExtraOffset)
{
MS_WARN_TAG(
simulcast,
"giving up on stream switch after requested keyframe for which still too high RTP timestamp extra offset is needed (%" PRIu32
")",
tsExtraOffset);
tsExtraOffset = 1u;
}
} }
else if (tsExtraOffset > maxTsExtraOffset) else if (tsExtraOffset > maxTsExtraOffset)
{ {
...@@ -778,6 +787,7 @@ namespace RTC ...@@ -778,6 +787,7 @@ namespace RTC
tsExtraOffset); tsExtraOffset);
RequestKeyFrameForTargetSpatialLayer(); RequestKeyFrameForTargetSpatialLayer();
this->keyFrameForTsOffsetRequested = true; this->keyFrameForTsOffsetRequested = true;
return; return;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论