Store RtpPacketReceived::arrival_time as Timestamp.

Previously this value was rounded up to a millisecond value.
This change is complementary to another change:
https://webrtc-review.googlesource.com/c/src/+/216398

Bug: webrtc:12722
Change-Id: I0fd2baceb4608132615fb6ad241ec863e343edb1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/217521
Commit-Queue: Tommi <tommi@webrtc.org>
Reviewed-by: Johannes Kron <kron@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33928}
This commit is contained in:
Tommi
2021-05-05 12:33:00 +02:00
committed by WebRTC LUCI CQ
parent 3f418ccf99
commit 2497a27b22
10 changed files with 43 additions and 31 deletions

View File

@ -194,9 +194,9 @@ TEST(RtxReceiveStreamTest, PropagatesArrivalTime) {
RtxReceiveStream rtx_sink(&media_sink, PayloadTypeMapping(), kMediaSSRC);
RtpPacketReceived rtx_packet(nullptr);
EXPECT_TRUE(rtx_packet.Parse(rtc::ArrayView<const uint8_t>(kRtxPacket)));
rtx_packet.set_arrival_time_ms(123);
EXPECT_CALL(media_sink,
OnRtpPacket(Property(&RtpPacketReceived::arrival_time_ms, 123)));
rtx_packet.set_arrival_time(Timestamp::Millis(123));
EXPECT_CALL(media_sink, OnRtpPacket(Property(&RtpPacketReceived::arrival_time,
Timestamp::Millis(123))));
rtx_sink.OnRtpPacket(rtx_packet);
}