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

Unified Diff: media/cast/audio_receiver/audio_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
« no previous file with comments | « media/cast/README ('k') | media/cast/audio_receiver/audio_receiver_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/audio_receiver/audio_receiver.cc
diff --git a/media/cast/audio_receiver/audio_receiver.cc b/media/cast/audio_receiver/audio_receiver.cc
index 5cb080205a24775125d5767a27939e4224ee2f8a..94abdfffb13b9f00e0b094a7f7da82294200e813 100644
--- a/media/cast/audio_receiver/audio_receiver.cc
+++ b/media/cast/audio_receiver/audio_receiver.cc
@@ -77,14 +77,14 @@ void AudioReceiver::OnReceivedPayloadData(const uint8* payload_data,
// TODO(pwestin): update this as video to refresh over time.
if (time_first_incoming_packet_.is_null()) {
InitializeTimers();
- first_incoming_rtp_timestamp_ = rtp_header.webrtc.header.timestamp;
+ first_incoming_rtp_timestamp_ = rtp_header.rtp_timestamp;
time_first_incoming_packet_ = now;
}
frame_id_to_rtp_timestamp_[rtp_header.frame_id & 0xff] =
- rtp_header.webrtc.header.timestamp;
+ rtp_header.rtp_timestamp;
cast_environment_->Logging()->InsertPacketEvent(
- now, kAudioPacketReceived, rtp_header.webrtc.header.timestamp,
+ now, kAudioPacketReceived, rtp_header.rtp_timestamp,
rtp_header.frame_id, rtp_header.packet_id, rtp_header.max_packet_id,
payload_size);
@@ -95,7 +95,7 @@ void AudioReceiver::OnReceivedPayloadData(const uint8* payload_data,
cast_environment_->Logging()->InsertPacketEvent(
now,
kDuplicateAudioPacketReceived,
- rtp_header.webrtc.header.timestamp,
+ rtp_header.rtp_timestamp,
rtp_header.frame_id,
rtp_header.packet_id,
rtp_header.max_packet_id,
« no previous file with comments | « media/cast/README ('k') | media/cast/audio_receiver/audio_receiver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698