提交 1ef77f8e authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

RtpSender::RetransmitRtpPacket(): Don't call to RtpSender::SendRtpPacket() (fix…

RtpSender::RetransmitRtpPacket(): Don't call to RtpSender::SendRtpPacket() (fix a crash when SendRtpPacket() was called with an old packet that triggers a buffer clean, so next nack'ed packets no longer exist)
上级 a3988185
......@@ -92,9 +92,8 @@ namespace RTC
// Timestamp when last RTCP was sent.
uint64_t lastRtcpSentTime = 0;
uint16_t maxRtcpInterval;
// TODO: keep track of retransmitted data too.
//RTC::RtpDataCounter retransmitted;
// RTC::RtpDataCounter retransmitted;
};
/* Inline methods. */
......
......@@ -342,8 +342,8 @@ namespace RTC
// Send the packet.
this->transport->SendRtpPacket(packet);
// Save RTP data
transmitted.Update(packet);
// Save RTP data.
this->transmitted.Update(packet);
}
void RtpSender::GetRtcp(RTC::RTCP::CompoundPacket *packet, uint64_t now)
......@@ -414,7 +414,11 @@ namespace RTC
// If the peer supports RTX create a RTX packet and insert the given media
// packet as payload. Otherwise just send the packet as usual.
// TODO: No RTX for now so just send as usual.
SendRtpPacket(packet);
MS_ASSERT(this->rtpStream, "no RtpStream set");
// Send the packet.
this->transport->SendRtpPacket(packet);
}
inline
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论