Removing avoidable usages of Clock::GetRealTimeClock().
Bug: webrtc:10365
Change-Id: I56523f9b4de697b9136d7f8df74f43051c7b5b42
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/130484
Reviewed-by: Åsa Persson <asapersson@webrtc.org>
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27363}
diff --git a/video/video_analyzer.cc b/video/video_analyzer.cc
index b72048e..cb6c6f1 100644
--- a/video/video_analyzer.cc
+++ b/video/video_analyzer.cc
@@ -220,8 +220,7 @@
rtc::CritScope lock(&crit_);
int64_t timestamp =
wrap_handler_.Unwrap(header.timestamp - rtp_timestamp_delta_);
- recv_times_[timestamp] =
- Clock::GetRealTimeClock()->CurrentNtpInMilliseconds();
+ recv_times_[timestamp] = clock_->CurrentNtpInMilliseconds();
}
return receiver_->DeliverPacket(media_type, std::move(packet),
@@ -254,7 +253,7 @@
RTPHeader header;
parser.Parse(&header);
- int64_t current_time = Clock::GetRealTimeClock()->CurrentNtpInMilliseconds();
+ int64_t current_time = clock_->CurrentNtpInMilliseconds();
bool result = transport_->SendRtp(packet, length, options);
{
@@ -292,8 +291,7 @@
}
void VideoAnalyzer::OnFrame(const VideoFrame& video_frame) {
- int64_t render_time_ms =
- Clock::GetRealTimeClock()->CurrentNtpInMilliseconds();
+ int64_t render_time_ms = clock_->CurrentNtpInMilliseconds();
rtc::CritScope lock(&crit_);