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 @@ void LogTransportEvents(const scoped_refptr<CastEnvironment>& env, |
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); |
+ } |
} |
} |