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 <danilchap@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26372}
This commit is contained in:
@ -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<ForwardErrorCorrection::ReceivedPacket>
|
||||
|
Reference in New Issue
Block a user