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

Unified Diff: media/cast/rtp_receiver/receiver_stats.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/framer/framer_unittest.cc ('k') | media/cast/rtp_receiver/receiver_stats_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/rtp_receiver/receiver_stats.cc
diff --git a/media/cast/rtp_receiver/receiver_stats.cc b/media/cast/rtp_receiver/receiver_stats.cc
index dd82991a3e969658762e6a3b4ffcbf49c9872ecd..7eff86763f88e8255177b41bdb3ac27f57035d72 100644
--- a/media/cast/rtp_receiver/receiver_stats.cc
+++ b/media/cast/rtp_receiver/receiver_stats.cc
@@ -75,7 +75,7 @@ void ReceiverStats::GetStatistics(uint8* fraction_lost,
}
void ReceiverStats::UpdateStatistics(const RtpCastHeader& header) {
- uint16 new_seq_num = header.webrtc.header.sequenceNumber;
+ const uint16 new_seq_num = header.sequence_number;
if (interval_number_packets_ == 0) {
// First packet in the interval.
@@ -99,7 +99,7 @@ void ReceiverStats::UpdateStatistics(const RtpCastHeader& header) {
// Compute Jitter.
base::TimeTicks now = clock_->NowTicks();
base::TimeDelta delta_new_timestamp =
- base::TimeDelta::FromMilliseconds(header.webrtc.header.timestamp);
+ base::TimeDelta::FromMilliseconds(header.rtp_timestamp);
if (total_number_packets_ > 0) {
// Update jitter.
base::TimeDelta delta =
« no previous file with comments | « media/cast/framer/framer_unittest.cc ('k') | media/cast/rtp_receiver/receiver_stats_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698