Skip to content

Commit

Permalink
Apply changes to TestRtpRetransmissionBuffer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillan committed Jul 4, 2024
1 parent da616e5 commit a999cd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker/test/src/RTC/TestRtpRetransmissionBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ class RtpMyRetransmissionBuffer : public RtpRetransmissionBuffer
};
// clang-format on

auto* packet = RtpPacket::Parse(rtpBuffer, sizeof(rtpBuffer));
std::unique_ptr<RtpPacket> packet{ RtpPacket::Parse(rtpBuffer, sizeof(rtpBuffer)) };

packet->SetSequenceNumber(seq);
packet->SetTimestamp(timestamp);

std::shared_ptr<RtpPacket> sharedPacket;

RtpRetransmissionBuffer::Insert(packet, sharedPacket);
RtpRetransmissionBuffer::Insert(packet.get(), sharedPacket);
}

void AssertBuffer(std::vector<VerificationItem> verificationBuffer)
Expand Down

0 comments on commit a999cd6

Please sign in to comment.