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

Unified Diff: media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.cc

Issue 69603002: Incorporating logging into Cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing errors Created 7 years, 1 month 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/rtcp/test_rtcp_packet_builder.h ('k') | media/cast/rtp_sender/rtp_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.cc
diff --git a/media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.cc b/media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.cc
index 790c513a8d3bc00862d646b924c39692b507063c..f4ba5ba5c21fec93bde5a1b418372a2e8fa90a09 100644
--- a/media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.cc
+++ b/media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.cc
@@ -39,11 +39,8 @@ void RtpPacketizer::IncomingEncodedVideoFrame(
DCHECK(!config_.audio) << "Invalid state";
if (config_.audio) return;
- base::TimeTicks zero_time;
- base::TimeDelta capture_delta = capture_time - zero_time;
-
// Timestamp is in 90 KHz for video.
- rtp_timestamp_ = static_cast<uint32>(capture_delta.InMilliseconds() * 90);
+ rtp_timestamp_ = GetVideoRtpTimestamp(capture_time);
time_last_sent_rtp_timestamp_ = capture_time;
Cast(video_frame->key_frame,
« no previous file with comments | « media/cast/rtcp/test_rtcp_packet_builder.h ('k') | media/cast/rtp_sender/rtp_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698