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