| Index: media/cast/video_receiver/video_receiver.cc
|
| diff --git a/media/cast/video_receiver/video_receiver.cc b/media/cast/video_receiver/video_receiver.cc
|
| index 82a2c293823ac5fbe1784f9dfcd0c079129bc0d1..1e6e500e15848a58d1d10455016a09115b71bf8f 100644
|
| --- a/media/cast/video_receiver/video_receiver.cc
|
| +++ b/media/cast/video_receiver/video_receiver.cc
|
| @@ -367,6 +367,7 @@ base::TimeTicks VideoReceiver::GetRenderTime(base::TimeTicks now,
|
| // Note: the senders clock and our local clock might not be synced.
|
| base::TimeTicks rtp_timestamp_in_ticks;
|
|
|
| + // Compute the time offset_in_ticks based on the incoming_rtp_timestamp_.
|
| if (time_offset_.InMilliseconds() == 0) {
|
| if (!rtcp_->RtpTimestampInSenderTime(kVideoFrequency,
|
| incoming_rtp_timestamp_,
|
| @@ -389,6 +390,7 @@ base::TimeTicks VideoReceiver::GetRenderTime(base::TimeTicks now,
|
| }
|
| // Reset |time_incoming_packet_updated_| to enable a future measurement.
|
| time_incoming_packet_updated_ = false;
|
| + // Compute the actual rtp_timestamp_in_ticks based on the current timestamp.
|
| if (!rtcp_->RtpTimestampInSenderTime(
|
| kVideoFrequency, rtp_timestamp, &rtp_timestamp_in_ticks)) {
|
| // This can fail if we have not received any RTCP packets in a long time.
|
|
|