summaryrefslogtreecommitdiffstats
path: root/media/cast/video_receiver/video_receiver.cc
diff options
context:
space:
mode:
authorpwestin@google.com <pwestin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-17 23:12:07 +0000
committerpwestin@google.com <pwestin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-17 23:12:07 +0000
commit0c42d8eeb1fcb81fb23312b52a7c5a8b7d012d0a (patch)
tree593953bdcab0f921fd628446b14d3ae98ffa135f /media/cast/video_receiver/video_receiver.cc
parentc710c2ce2de97207dba9c275097d85e951e02d73 (diff)
downloadchromium_src-0c42d8eeb1fcb81fb23312b52a7c5a8b7d012d0a.zip
chromium_src-0c42d8eeb1fcb81fb23312b52a7c5a8b7d012d0a.tar.gz
chromium_src-0c42d8eeb1fcb81fb23312b52a7c5a8b7d012d0a.tar.bz2
Cast: Changing log classes to support incoming time of event.
Prior to this cl the log class retrived the time from the system with this change the time of a log event can be specified by the caller. This change is needed for the receiver of a RTCP message that contain log messages to insert them with a correct time. Review URL: https://codereview.chromium.org/111663003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241404 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/cast/video_receiver/video_receiver.cc')
-rw-r--r--media/cast/video_receiver/video_receiver.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/media/cast/video_receiver/video_receiver.cc b/media/cast/video_receiver/video_receiver.cc
index 98bed1f..c735103 100644
--- a/media/cast/video_receiver/video_receiver.cc
+++ b/media/cast/video_receiver/video_receiver.cc
@@ -250,8 +250,9 @@ bool VideoReceiver::PullEncodedVideoFrame(uint32 rtp_timestamp,
*render_time = GetRenderTime(now, rtp_timestamp);
// TODO(mikhal): Store actual render time and not diff.
- cast_environment_->Logging()->InsertFrameEventWithDelay(kVideoRenderDelay,
- rtp_timestamp, (*encoded_frame)->frame_id, now - *render_time);
+ cast_environment_->Logging()->InsertFrameEventWithDelay(now,
+ kVideoRenderDelay, rtp_timestamp, (*encoded_frame)->frame_id,
+ now - *render_time);
// Minimum time before a frame is due to be rendered before we pull it for
// decode.
@@ -394,7 +395,7 @@ void VideoReceiver::IncomingParsedRtpPacket(const uint8* payload_data,
time_incoming_packet_updated_ = true;
}
- cast_environment_->Logging()->InsertPacketEvent(kPacketReceived,
+ cast_environment_->Logging()->InsertPacketEvent(now, kPacketReceived,
rtp_header.webrtc.header.timestamp, rtp_header.frame_id,
rtp_header.packet_id, rtp_header.max_packet_id, payload_size);