From b599787969ab2a2508aa4a6528cddd7c8f1a185f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Wed, 23 Jan 2019 08:45:57 +0100 Subject: [PATCH] Make UlpfecReceiverImpl use rtc::TimeMillis, not Clock::GetRealTimeClock Bug: webrtc:6733 Change-Id: I0cdfc781ff0daff18d1fc0b6243fb1f95f704cc9 Reviewed-on: https://webrtc-review.googlesource.com/c/119220 Reviewed-by: Danil Chapovalov Commit-Queue: Niels Moller Cr-Commit-Position: refs/heads/master@{#26372} --- modules/rtp_rtcp/source/ulpfec_receiver_impl.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/rtp_rtcp/source/ulpfec_receiver_impl.cc b/modules/rtp_rtcp/source/ulpfec_receiver_impl.cc index 7da6b88a00..0bb4ad8a08 100644 --- a/modules/rtp_rtcp/source/ulpfec_receiver_impl.cc +++ b/modules/rtp_rtcp/source/ulpfec_receiver_impl.cc @@ -17,7 +17,7 @@ #include "modules/rtp_rtcp/source/byte_io.h" #include "rtc_base/logging.h" #include "rtc_base/scoped_ref_ptr.h" -#include "system_wrappers/include/clock.h" +#include "rtc_base/time_utils.h" namespace webrtc { @@ -141,8 +141,7 @@ int32_t UlpfecReceiverImpl::AddReceivedRedPacket( } ++packet_counter_.num_packets; if (packet_counter_.first_packet_time_ms == -1) { - packet_counter_.first_packet_time_ms = - Clock::GetRealTimeClock()->TimeInMilliseconds(); + packet_counter_.first_packet_time_ms = rtc::TimeMillis(); } std::unique_ptr