diff options
Diffstat (limited to 'media/cast/video_sender/video_encoder.cc')
-rw-r--r-- | media/cast/video_sender/video_encoder.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/media/cast/video_sender/video_encoder.cc b/media/cast/video_sender/video_encoder.cc index faa78d3..eb0cf49 100644 --- a/media/cast/video_sender/video_encoder.cc +++ b/media/cast/video_sender/video_encoder.cc @@ -15,7 +15,8 @@ namespace cast { void LogFrameEncodedEvent(CastEnvironment* const cast_environment, const base::TimeTicks& capture_time) { - cast_environment->Logging()->InsertFrameEvent(kVideoFrameEncoded, + base::TimeTicks now = cast_environment->Clock()->NowTicks(); + cast_environment->Logging()->InsertFrameEvent(now, kVideoFrameEncoded, GetVideoRtpTimestamp(capture_time), kFrameIdUnknown); } @@ -52,7 +53,8 @@ bool VideoEncoder::EncodeVideoFrame( return false; } - cast_environment_->Logging()->InsertFrameEvent(kVideoFrameSentToEncoder, + base::TimeTicks now = cast_environment_->Clock()->NowTicks(); + cast_environment_->Logging()->InsertFrameEvent(now, kVideoFrameSentToEncoder, GetVideoRtpTimestamp(capture_time), kFrameIdUnknown); cast_environment_->PostTask(CastEnvironment::VIDEO_ENCODER, FROM_HERE, base::Bind(&VideoEncoder::EncodeVideoFrameEncoderThread, |