Prevent excessive logging in jitter buffer

Jitter buffer logs a message when it is going to recycle frames. This adds a
lot of noise even in normal operation. This change make sure only critical
cases are logged.

R=mikhal@webrtc.org

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4150 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
hclam@chromium.org
2013-05-31 18:52:16 +00:00
parent 85f28650d5
commit b1bba167f4

View File

@ -847,7 +847,9 @@ uint16_t* VCMJitterBuffer::GetNackList(uint16_t* nack_list_size,
if (!first_frame_is_key) { if (!first_frame_is_key) {
const bool have_non_empty_frame = frame_list_.end() != find_if( const bool have_non_empty_frame = frame_list_.end() != find_if(
frame_list_.begin(), frame_list_.end(), HasNonEmptyState); frame_list_.begin(), frame_list_.end(), HasNonEmptyState);
LOG_F(LS_INFO) << "First frame is not key; Recycling."; if (have_non_empty_frame) {
LOG_F(LS_INFO) << "First frame is not key; Recycling.";
}
bool found_key_frame = RecycleFramesUntilKeyFrame(); bool found_key_frame = RecycleFramesUntilKeyFrame();
if (!found_key_frame) { if (!found_key_frame) {
*request_key_frame = have_non_empty_frame; *request_key_frame = have_non_empty_frame;