Skip to content

Commit

Permalink
In RtpVideoStreamReceiver change way to track time for the last recei…
Browse files Browse the repository at this point in the history
…ved packet.

Instead of tracking packets accepted by PacketBuffer, track all incoming
packets, including packets discarded before getting into PacketBuffer.

Bug: b/179759126
Change-Id: I4d270c61455608fb78b0df8f27760868f4c98205
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/208289
Reviewed-by: Philip Eliasson <[email protected]>
Reviewed-by: Erik Språng <[email protected]>
Commit-Queue: Danil Chapovalov <[email protected]>
Cr-Commit-Position: refs/heads/master@{#33305}
  • Loading branch information
DanilChapovalov authored and Commit Bot committed Feb 19, 2021
1 parent f3dc47e commit 1fbff10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion video/rtp_video_stream_receiver2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,8 @@ void RtpVideoStreamReceiver2::UpdateRtt(int64_t max_rtt_ms) {
}

absl::optional<int64_t> RtpVideoStreamReceiver2::LastReceivedPacketMs() const {
return packet_buffer_.LastReceivedPacketMs();
RTC_DCHECK_RUN_ON(&worker_task_checker_);
return last_received_rtp_system_time_ms_;
}

absl::optional<int64_t> RtpVideoStreamReceiver2::LastReceivedKeyframePacketMs()
Expand Down

0 comments on commit 1fbff10

Please sign in to comment.