Replace std::optional with absl::optional in RtpPacketHistory

Bug: webrtc:15201
Change-Id: I2c78b7215ef366e3aee0ad1c3c10ca0c96c8d0c8
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/307023
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Auto-Submit: Per Kjellander <perkj@webrtc.org>
Commit-Queue: Per Kjellander <perkj@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#40181}
This commit is contained in:
Per K 2023-05-30 13:26:11 +02:00 committed by WebRTC LUCI CQ
parent d8098fb5fd
commit 6acfbb066e
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,6 @@
#include <cstdint>
#include <limits>
#include <memory>
#include <optional>
#include <utility>
#include "modules/include/module_common_types_public.h"
@ -350,7 +349,7 @@ void RtpPacketHistory::Clear() {
void RtpPacketHistory::Reset() {
packet_history_.clear();
padding_priority_.clear();
large_payload_packet_ = std::nullopt;
large_payload_packet_ = absl::nullopt;
}
void RtpPacketHistory::CullOldPackets() {

View File

@ -18,6 +18,7 @@
#include <utility>
#include <vector>
#include "absl/types/optional.h"
#include "api/function_view.h"
#include "api/units/time_delta.h"
#include "api/units/timestamp.h"
@ -208,7 +209,7 @@ class RtpPacketHistory {
// in GetPayloadPaddingPacket().
PacketPrioritySet padding_priority_ RTC_GUARDED_BY(lock_);
std::optional<RtpPacketToSend> large_payload_packet_ RTC_GUARDED_BY(lock_);
absl::optional<RtpPacketToSend> large_payload_packet_ RTC_GUARDED_BY(lock_);
};
} // namespace webrtc
#endif // MODULES_RTP_RTCP_SOURCE_RTP_PACKET_HISTORY_H_