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:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user