summaryrefslogtreecommitdiffstats
path: root/media/cast/logging/stats_event_subscriber.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/cast/logging/stats_event_subscriber.cc')
-rw-r--r--media/cast/logging/stats_event_subscriber.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/media/cast/logging/stats_event_subscriber.cc b/media/cast/logging/stats_event_subscriber.cc
index a131cae..9d68710 100644
--- a/media/cast/logging/stats_event_subscriber.cc
+++ b/media/cast/logging/stats_event_subscriber.cc
@@ -577,9 +577,7 @@ void StatsEventSubscriber::RecordE2ELatency(const FrameEvent& frame_event) {
if (it == recent_frame_infos_.end())
return;
- // Playout time is event time + playout delay.
- base::TimeTicks playout_time =
- frame_event.timestamp + frame_event.delay_delta - receiver_offset;
+ base::TimeTicks playout_time = frame_event.timestamp - receiver_offset;
base::TimeDelta latency = playout_time - it->second.capture_time;
total_e2e_latency_ += latency;
e2e_latency_datapoints_++;