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

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

Issue 250363002: [Cast] Clean-up RtpCastHeader and RtpParser, removing the last WebRTC dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed hubbe's comment. Created 6 years, 8 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
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 10ca3fc6734b7e8a1f8103f175f16e3a64f01868..677475fb275cbc3c1bef2d035aed8962b8b61187 100644
--- a/media/cast/video_receiver/video_receiver.cc
+++ b/media/cast/video_receiver/video_receiver.cc
@@ -315,7 +315,7 @@ void VideoReceiver::OnReceivedPayloadData(const uint8* payload_data,
base::TimeDelta::FromMilliseconds(kMinTimeBetweenOffsetUpdatesMs)) {
if (time_incoming_packet_.is_null())
InitializeTimers();
- incoming_rtp_timestamp_ = rtp_header.webrtc.header.timestamp;
+ incoming_rtp_timestamp_ = rtp_header.rtp_timestamp;
// The following incoming packet info is used for syncing sender and
// receiver clock. Use only the first packet of every frame to obtain a
// minimal value.
@@ -326,11 +326,11 @@ void VideoReceiver::OnReceivedPayloadData(const uint8* payload_data,
}
frame_id_to_rtp_timestamp_[rtp_header.frame_id & 0xff] =
- rtp_header.webrtc.header.timestamp;
+ rtp_header.rtp_timestamp;
cast_environment_->Logging()->InsertPacketEvent(
now,
kVideoPacketReceived,
- rtp_header.webrtc.header.timestamp,
+ rtp_header.rtp_timestamp,
rtp_header.frame_id,
rtp_header.packet_id,
rtp_header.max_packet_id,
@@ -343,7 +343,7 @@ void VideoReceiver::OnReceivedPayloadData(const uint8* payload_data,
cast_environment_->Logging()->InsertPacketEvent(
now,
kDuplicateVideoPacketReceived,
- rtp_header.webrtc.header.timestamp,
+ rtp_header.rtp_timestamp,
rtp_header.frame_id,
rtp_header.packet_id,
rtp_header.max_packet_id,

Powered by Google App Engine
This is Rietveld 408576698