提交 3099573f authored 作者: José Luis Millán's avatar José Luis Millán

Consumer: Reset probation on pause and when disabling

上级 d631ade1
......@@ -138,6 +138,12 @@ namespace RTC
{
this->rtpStream->ClearRetransmissionBuffer();
this->rtpPacketsBeforeProbation = RtpPacketsBeforeProbation;
if (this->isProbing)
{
this->isProbing = false;
this->probingProfile = RTC::RtpEncodingParameters::Profile::NONE;
}
}
}
......@@ -179,6 +185,12 @@ namespace RTC
{
this->rtpStream->ClearRetransmissionBuffer();
this->rtpPacketsBeforeProbation = RtpPacketsBeforeProbation;
if (this->isProbing)
{
this->isProbing = false;
this->probingProfile = RTC::RtpEncodingParameters::Profile::NONE;
}
}
}
......@@ -332,8 +344,11 @@ namespace RTC
this->lastRtcpSentTime = 0;
// Reset probation.
this->isProbing = false;
this->probingProfile = RTC::RtpEncodingParameters::Profile::NONE;
if (this->isProbing)
{
this->isProbing = false;
this->probingProfile = RTC::RtpEncodingParameters::Profile::NONE;
}
}
void Consumer::SendRtpPacket(RTC::RtpPacket* packet, RTC::RtpEncodingParameters::Profile profile)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论