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

Consumer: always restore the sequence number and timestamp

上级 b76f7d5e
...@@ -305,14 +305,14 @@ namespace RTC ...@@ -305,14 +305,14 @@ namespace RTC
packet->SetTimestamp(this->rtpTimestamp); packet->SetTimestamp(this->rtpTimestamp);
// Process the packet. // Process the packet.
if (!this->rtpStream->ReceivePacket(packet)) if (this->rtpStream->ReceivePacket(packet))
return; {
// Send the packet. // Send the packet.
this->transport->SendRtpPacket(packet); this->transport->SendRtpPacket(packet);
// Update transmitted RTP data counter. // Update transmitted RTP data counter.
this->transmittedCounter.Update(packet); this->transmittedCounter.Update(packet);
}
// Restore the original sequence number. // Restore the original sequence number.
packet->SetSequenceNumber(this->lastRecvSeqNum); packet->SetSequenceNumber(this->lastRecvSeqNum);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论