[Unwrap] Migrate TransportFeedbackAdapter to use RtpSequenceNumberUnwrapper

Bug: webrtc:13982
Change-Id: Ie1657a7238129e1fa2f10b5f80949aea2119ea98
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/288966
Commit-Queue: Evan Shrubsole <eshr@webrtc.org>
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Auto-Submit: Evan Shrubsole <eshr@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39064}
This commit is contained in:
Evan Shrubsole 2023-01-09 13:42:15 +00:00 committed by WebRTC LUCI CQ
parent 7b96ebbc56
commit 47d4be732f
2 changed files with 3 additions and 2 deletions

View File

@ -63,6 +63,7 @@ rtc_library("transport_feedback") {
"../../../rtc_base:logging",
"../../../rtc_base:macromagic",
"../../../rtc_base:network_route",
"../../../rtc_base:rtc_numerics",
"../../../rtc_base/network:sent_packet",
"../../../rtc_base/synchronization:mutex",
"../../../rtc_base/system:no_unique_address",

View File

@ -19,10 +19,10 @@
#include "api/sequence_checker.h"
#include "api/transport/network_types.h"
#include "api/units/timestamp.h"
#include "modules/include/module_common_types_public.h"
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
#include "rtc_base/network/sent_packet.h"
#include "rtc_base/network_route.h"
#include "rtc_base/numerics/sequence_number_unwrapper.h"
#include "rtc_base/thread_annotations.h"
namespace webrtc {
@ -83,7 +83,7 @@ class TransportFeedbackAdapter {
DataSize pending_untracked_size_ = DataSize::Zero();
Timestamp last_send_time_ = Timestamp::MinusInfinity();
Timestamp last_untracked_send_time_ = Timestamp::MinusInfinity();
SequenceNumberUnwrapper seq_num_unwrapper_;
RtpSequenceNumberUnwrapper seq_num_unwrapper_;
std::map<int64_t, PacketFeedback> history_;
// Sequence numbers are never negative, using -1 as it always < a real