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

Unified Diff: chrome/renderer/media/cast_session_delegate.cc

Issue 410443002: Revert of Revert of Cast: Log playout delay from receiver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | media/cast/test/simulator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_session_delegate.cc
diff --git a/chrome/renderer/media/cast_session_delegate.cc b/chrome/renderer/media/cast_session_delegate.cc
index 2e42c7b31be37cf82f3f4eae98f7a6ef3d72a700..f1dfa836a8cd1f6b4fe709e775ba5c7388df2c74 100644
--- a/chrome/renderer/media/cast_session_delegate.cc
+++ b/chrome/renderer/media/cast_session_delegate.cc
@@ -238,10 +238,21 @@
frame_events.begin();
it != frame_events.end();
++it) {
- cast_environment_->Logging()->InsertFrameEvent(it->timestamp,
- it->type,
- it->media_type,
- it->rtp_timestamp,
- it->frame_id);
- }
-}
+ if (it->type == media::cast::FRAME_PLAYOUT) {
+ cast_environment_->Logging()->InsertFrameEventWithDelay(
+ it->timestamp,
+ it->type,
+ it->media_type,
+ it->rtp_timestamp,
+ it->frame_id,
+ it->delay_delta);
+ } else {
+ cast_environment_->Logging()->InsertFrameEvent(
+ it->timestamp,
+ it->type,
+ it->media_type,
+ it->rtp_timestamp,
+ it->frame_id);
+ }
+ }
+}
« no previous file with comments | « no previous file | media/cast/test/simulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698