Skip to content

Commit

Permalink
fix increase layer when current layer has not receive SR (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
penguinol authored May 19, 2024
1 parent 84a39ff commit 26ee0df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions worker/src/RTC/SimulcastConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,11 @@ namespace RTC

MS_DEBUG_TAG(simulcast, "first SenderReport [ssrc:%" PRIu32 "]", rtpStream->GetSsrc());

// If our current selected RTP stream does not yet have SR, do nothing since
// we know we won't be able to switch.
auto* producerCurrentRtpStream = GetProducerCurrentRtpStream();
// If our RTP timestamp reference stream does not yet have SR, do nothing
// since we know we won't be able to switch.
auto* producerTsReferenceRtpStream = GetProducerTsReferenceRtpStream();

if (!producerCurrentRtpStream || !producerCurrentRtpStream->GetSenderReportNtpMs())
if (!producerTsReferenceRtpStream || !producerTsReferenceRtpStream->GetSenderReportNtpMs())
{
return;
}
Expand Down

0 comments on commit 26ee0df

Please sign in to comment.