提交 282f696b authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

RtpStreamSend: Do not clear retransmission buffer upon receipt of a key frame.…

RtpStreamSend: Do not clear retransmission buffer upon receipt of a key frame. No good reason for it.
上级 85160d6b
...@@ -55,7 +55,7 @@ namespace RTC ...@@ -55,7 +55,7 @@ namespace RTC
private: private:
void StorePacket(RTC::RtpPacket* packet); void StorePacket(RTC::RtpPacket* packet);
void ClearBuffer(); void ClearBuffer();
void ResetStorageItem(StorageItem* storateItem); void ResetStorageItem(StorageItem* storageItem);
void UpdateBufferStartIdx(); void UpdateBufferStartIdx();
void FillRetransmissionContainer(uint16_t seq, uint16_t bitmask); void FillRetransmissionContainer(uint16_t seq, uint16_t bitmask);
void UpdateScore(RTC::RTCP::ReceiverReport* report); void UpdateScore(RTC::RTCP::ReceiverReport* report);
......
...@@ -60,12 +60,6 @@ namespace RTC ...@@ -60,12 +60,6 @@ namespace RTC
if (!RtpStream::ReceivePacket(packet)) if (!RtpStream::ReceivePacket(packet))
return false; return false;
// If it's a key frame clear the RTP retransmission buffer to avoid
// congesting the receiver by sending useless retransmissions (now that we
// are sending a newer key frame).
if (packet->IsKeyFrame())
ClearBuffer();
// If bufferSize was given, store the packet into the buffer. // If bufferSize was given, store the packet into the buffer.
if (!this->storage.empty()) if (!this->storage.empty())
StorePacket(packet); StorePacket(packet);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论