提交 73cb56a4 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Consumer: don't send sync key frame twice

上级 b59119e7
......@@ -307,9 +307,6 @@ namespace RTC
return;
}
// Whether we want to re-transmit the packet.
bool retransmissionNeeded = false;
// Check whether this is the key frame we are waiting for in order to update the effective
// profile.
if (this->effectiveProfile != this->targetProfile && profile == this->targetProfile)
......@@ -331,9 +328,6 @@ namespace RTC
{
SetEffectiveProfile(this->targetProfile);
// Send this packet twice.
retransmissionNeeded = true;
// Resynchronize the stream.
this->syncRequired = true;
......@@ -427,15 +421,6 @@ namespace RTC
// Update transmitted RTP data counter.
this->transmittedCounter.Update(packet);
if (retransmissionNeeded)
{
// Send the packet.
this->transport->SendRtpPacket(packet);
// Update transmitted RTP data counter.
this->transmittedCounter.Update(packet);
}
}
else
{
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论