Unverified 提交 26ee0df7 authored 作者: Junlong Zou's avatar Junlong Zou 提交者: GitHub

fix increase layer when current layer has not receive SR (#1098)

上级 84a39ffe
...@@ -366,11 +366,11 @@ namespace RTC ...@@ -366,11 +366,11 @@ namespace RTC
MS_DEBUG_TAG(simulcast, "first SenderReport [ssrc:%" PRIu32 "]", rtpStream->GetSsrc()); MS_DEBUG_TAG(simulcast, "first SenderReport [ssrc:%" PRIu32 "]", rtpStream->GetSsrc());
// If our current selected RTP stream does not yet have SR, do nothing since // If our RTP timestamp reference stream does not yet have SR, do nothing
// we know we won't be able to switch. // since we know we won't be able to switch.
auto* producerCurrentRtpStream = GetProducerCurrentRtpStream(); auto* producerTsReferenceRtpStream = GetProducerTsReferenceRtpStream();
if (!producerCurrentRtpStream || !producerCurrentRtpStream->GetSenderReportNtpMs()) if (!producerTsReferenceRtpStream || !producerTsReferenceRtpStream->GetSenderReportNtpMs())
{ {
return; return;
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论