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

Unified Diff: media/cast/test/simulator.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 | « chrome/renderer/media/cast_session_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/simulator.cc
diff --git a/media/cast/test/simulator.cc b/media/cast/test/simulator.cc
index 27812c333cbe3a287381d383205557c468d6e708..135d44bb45c85c9193e08dd213b19c94dc8494f3 100644
--- a/media/cast/test/simulator.cc
+++ b/media/cast/test/simulator.cc
@@ -104,11 +104,22 @@
frame_events.begin();
it != frame_events.end();
++it) {
- env->Logging()->InsertFrameEvent(it->timestamp,
- it->type,
- it->media_type,
- it->rtp_timestamp,
- it->frame_id);
+ if (it->type == FRAME_PLAYOUT) {
+ env->Logging()->InsertFrameEventWithDelay(
+ it->timestamp,
+ it->type,
+ it->media_type,
+ it->rtp_timestamp,
+ it->frame_id,
+ it->delay_delta);
+ } else {
+ env->Logging()->InsertFrameEvent(
+ it->timestamp,
+ it->type,
+ it->media_type,
+ it->rtp_timestamp,
+ it->frame_id);
+ }
}
}
« no previous file with comments | « chrome/renderer/media/cast_session_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698