Suppress excessive logging in video_coding

Only prints the warning message if a frame was dropped.

R=stefan@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1735004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4278 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
hclam@chromium.org 2013-06-27 19:47:40 +00:00
parent 2a7fd5355d
commit 5616abadf5

View File

@ -1176,9 +1176,11 @@ bool VCMJitterBuffer::RecycleFramesUntilKeyFrame() {
}
}
drop_count_ += dropped_frames;
WEBRTC_TRACE(webrtc::kTraceWarning, webrtc::kTraceVideoCoding,
VCMId(vcm_id_, receiver_id_),
"Jitter buffer drop count:%u", drop_count_);
if (dropped_frames) {
WEBRTC_TRACE(webrtc::kTraceWarning, webrtc::kTraceVideoCoding,
VCMId(vcm_id_, receiver_id_),
"Jitter buffer drop count:%u", drop_count_);
}
TRACE_EVENT_INSTANT0("webrtc", "JB::RecycleFramesUntilKeyFrame");
if (key_frame_found) {
// Reset last decoded state to make sure the next frame decoded is a key