From a999cd6ce4e8e0f70ec3580756ffc07a2e63f2fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?= Date: Thu, 4 Jul 2024 11:50:20 +0200 Subject: [PATCH] Apply changes to TestRtpRetransmissionBuffer.cpp --- worker/test/src/RTC/TestRtpRetransmissionBuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/test/src/RTC/TestRtpRetransmissionBuffer.cpp b/worker/test/src/RTC/TestRtpRetransmissionBuffer.cpp index ab038ba0e7..7158509ed2 100644 --- a/worker/test/src/RTC/TestRtpRetransmissionBuffer.cpp +++ b/worker/test/src/RTC/TestRtpRetransmissionBuffer.cpp @@ -36,14 +36,14 @@ class RtpMyRetransmissionBuffer : public RtpRetransmissionBuffer }; // clang-format on - auto* packet = RtpPacket::Parse(rtpBuffer, sizeof(rtpBuffer)); + std::unique_ptr packet{ RtpPacket::Parse(rtpBuffer, sizeof(rtpBuffer)) }; packet->SetSequenceNumber(seq); packet->SetTimestamp(timestamp); std::shared_ptr sharedPacket; - RtpRetransmissionBuffer::Insert(packet, sharedPacket); + RtpRetransmissionBuffer::Insert(packet.get(), sharedPacket); } void AssertBuffer(std::vector verificationBuffer)