From 8c49c1eab3d4891694f70ec1be54fb369451f303 Mon Sep 17 00:00:00 2001 From: "hclam@chromium.org" Date: Wed, 22 May 2013 21:18:59 +0000 Subject: [PATCH] Log a message when a key frame packet is received R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1518004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4089 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/video_coding/main/source/jitter_buffer.cc | 2 ++ webrtc/modules/video_coding/main/source/receiver.cc | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/webrtc/modules/video_coding/main/source/jitter_buffer.cc b/webrtc/modules/video_coding/main/source/jitter_buffer.cc index a27dfc9827..6d4bdaef1a 100644 --- a/webrtc/modules/video_coding/main/source/jitter_buffer.cc +++ b/webrtc/modules/video_coding/main/source/jitter_buffer.cc @@ -601,6 +601,7 @@ VCMFrameBufferEnum VCMJitterBuffer::GetFrame(const VCMPacket& packet, return kNoError; } // No free frame! Try to reclaim some... + LOG_F(LS_INFO) << "Unable to get empty frame; Recycling."; RecycleFramesUntilKeyFrame(); *frame = GetEmptyFrame(); @@ -847,6 +848,7 @@ uint16_t* VCMJitterBuffer::GetNackList(uint16_t* nack_list_size, if (!first_frame_is_key) { const bool have_non_empty_frame = frame_list_.end() != find_if( frame_list_.begin(), frame_list_.end(), HasNonEmptyState); + LOG_F(LS_INFO) << "First frame is not key; Recycling."; bool found_key_frame = RecycleFramesUntilKeyFrame(); if (!found_key_frame) { *request_key_frame = have_non_empty_frame; diff --git a/webrtc/modules/video_coding/main/source/receiver.cc b/webrtc/modules/video_coding/main/source/receiver.cc index 89383ea870..0e5593b210 100644 --- a/webrtc/modules/video_coding/main/source/receiver.cc +++ b/webrtc/modules/video_coding/main/source/receiver.cc @@ -77,6 +77,11 @@ void VCMReceiver::UpdateRtt(uint32_t rtt) { int32_t VCMReceiver::InsertPacket(const VCMPacket& packet, uint16_t frame_width, uint16_t frame_height) { + WEBRTC_TRACE(webrtc::kTraceInfo, webrtc::kTraceVideoCoding, + VCMId(vcm_id_, receiver_id_), + "Inserting key frame packet seqnum=%u, timestamp=%u", + packet.seqNum, packet.timestamp); + // Insert the packet into the jitter buffer. The packet can either be empty or // contain media at this point. bool retransmitted = false;