Use absl::optional instead of std::optional
We haven't switched to the std spelling in WebRTC yet. Change-Id: If21a6ee9ac19be8ce959b3192eb8de044048f157 Bug: None Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/310501 Auto-Submit: Emil Lundmark <lndmrk@webrtc.org> Commit-Queue: Erik Språng <sprang@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40356}
This commit is contained in:
parent
e4e33b8ee3
commit
365a5717ae
@ -15,6 +15,7 @@
|
||||
|
||||
#include "absl/algorithm/container.h"
|
||||
#include "absl/memory/memory.h"
|
||||
#include "absl/types/optional.h"
|
||||
#include "api/video/video_bitrate_allocation.h"
|
||||
#include "modules/rtp_rtcp/include/receive_statistics.h"
|
||||
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
||||
@ -365,7 +366,7 @@ void RtcpTransceiverImpl::HandleReportBlocks(
|
||||
Timestamp::Millis(now_ntp.ToMs() - rtc::kNtpJan1970Millisecs);
|
||||
|
||||
for (const rtcp::ReportBlock& block : rtcp_report_blocks) {
|
||||
std::optional<TimeDelta> rtt;
|
||||
absl::optional<TimeDelta> rtt;
|
||||
if (block.last_sr() != 0) {
|
||||
rtt = CompactNtpRttToTimeDelta(
|
||||
receive_time_ntp - block.delay_since_last_sr() - block.last_sr());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user