Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1069)

Unified Diff: media/cast/video_receiver/video_receiver.cc

Issue 147993010: Cast: end2end bug fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + nits Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/transport/transport/udp_transport.cc ('k') | media/cast/video_sender/video_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « media/cast/transport/transport/udp_transport.cc ('k') | media/cast/video_sender/video_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698