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:
@ -847,7 +847,9 @@ 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.";
|
||||
if (have_non_empty_frame) {
|
||||
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;
|
||||
|
Reference in New Issue
Block a user