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/call/call.cc b/call/call.cc
index 8dcd785..3f7ef5f 100644
--- a/call/call.cc
+++ b/call/call.cc
@@ -884,7 +884,7 @@
std::unique_ptr<FecController> fec_controller =
config_.fec_controller_factory
? config_.fec_controller_factory->CreateFecController()
- : absl::make_unique<FecControllerDefault>(Clock::GetRealTimeClock());
+ : absl::make_unique<FecControllerDefault>(clock_);
return CreateVideoSendStream(std::move(config), std::move(encoder_config),
std::move(fec_controller));
}
diff --git a/call/rtp_video_sender.cc b/call/rtp_video_sender.cc
index 87edf10..74015a8 100644
--- a/call/rtp_video_sender.cc
+++ b/call/rtp_video_sender.cc
@@ -81,7 +81,6 @@
RtpRtcp::Configuration configuration;
configuration.clock = clock;
configuration.audio = false;
- configuration.clock = Clock::GetRealTimeClock();
configuration.receiver_only = false;
configuration.outgoing_transport = send_transport;
configuration.intra_frame_callback = intra_frame_callback;