1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

SquashSRS4: Rename SrsRtpPacket2 to SrsRtpPacket.

This commit is contained in:
winlin 2021-05-15 08:53:54 +08:00
parent 6a980683f7
commit a1d7fe46c1
17 changed files with 191 additions and 190 deletions

View file

@ -731,20 +731,20 @@ VOID TEST(KernelRTCTest, NACKFetchRTPPacket)
// The RTP queue will free the packet.
if (true) {
SrsRtpPacket2* pkt = new SrsRtpPacket2();
SrsRtpPacket* pkt = new SrsRtpPacket();
pkt->header.set_sequence(100);
track->rtp_queue_->set(pkt->header.get_sequence(), pkt);
}
// If sequence not match, packet not found.
if (true) {
SrsRtpPacket2* pkt = track->fetch_rtp_packet(10);
SrsRtpPacket* pkt = track->fetch_rtp_packet(10);
EXPECT_TRUE(pkt == NULL);
}
// The sequence matched, we got the packet.
if (true) {
SrsRtpPacket2* pkt = track->fetch_rtp_packet(100);
SrsRtpPacket* pkt = track->fetch_rtp_packet(100);
EXPECT_TRUE(pkt != NULL);
}
@ -752,7 +752,7 @@ VOID TEST(KernelRTCTest, NACKFetchRTPPacket)
if (true) {
// The sequence is the "same", 1100%1000 is 100,
// so we can also get it from the RTP queue.
SrsRtpPacket2* pkt = track->rtp_queue_->at(1100);
SrsRtpPacket* pkt = track->rtp_queue_->at(1100);
EXPECT_TRUE(pkt != NULL);
// But the track requires exactly match, so it returns NULL.