Commit 423b2001 authored by Xiaohan Wang's avatar Xiaohan Wang Committed by Commit Bot

media: Adjust DVLOG levels in MediaCodecAudioDecoder

This CL makes it easier to filter MCAD logs.

See media logging guidance at
https://chromium.googlesource.com/chromium/src/+/master/media/README.md#logging

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: I5f510999273af202e0f28dc33a8e1b51b126f0d4
Reviewed-on: https://chromium-review.googlesource.com/1062648Reviewed-by: default avatarFrank Liberato <liberato@chromium.org>
Commit-Queue: Xiaohan Wang <xhwang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#559282}
parent ec49d79d
......@@ -178,7 +178,7 @@ void MediaCodecAudioDecoder::Decode(scoped_refptr<DecoderBuffer> buffer,
DCHECK(codec_loop_);
DVLOG(2) << __func__ << " " << buffer->AsHumanReadableString();
DVLOG(3) << __func__ << " " << buffer->AsHumanReadableString();
DCHECK_EQ(state_, STATE_READY) << " unexpected state " << AsString(state_);
......@@ -192,7 +192,7 @@ void MediaCodecAudioDecoder::Decode(scoped_refptr<DecoderBuffer> buffer,
}
void MediaCodecAudioDecoder::Reset(const base::Closure& closure) {
DVLOG(1) << __func__;
DVLOG(2) << __func__;
ClearInputQueue(DecodeStatus::ABORTED);
......@@ -287,7 +287,7 @@ bool MediaCodecAudioDecoder::IsAnyInputPending() const {
}
MediaCodecLoop::InputData MediaCodecAudioDecoder::ProvideInputData() {
DVLOG(2) << __func__;
DVLOG(3) << __func__;
const DecoderBuffer* decoder_buffer = input_queue_.front().first.get();
......@@ -338,7 +338,7 @@ void MediaCodecAudioDecoder::ClearInputQueue(DecodeStatus decode_status) {
}
void MediaCodecAudioDecoder::SetState(State new_state) {
DVLOG(1) << __func__ << ": " << AsString(state_) << "->"
DVLOG(3) << __func__ << ": " << AsString(state_) << "->"
<< AsString(new_state);
state_ = new_state;
}
......@@ -376,7 +376,7 @@ bool MediaCodecAudioDecoder::OnDecodedEos(
bool MediaCodecAudioDecoder::OnDecodedFrame(
const MediaCodecLoop::OutputBuffer& out) {
DVLOG(2) << __func__ << " pts:" << out.pts;
DVLOG(3) << __func__ << " pts:" << out.pts;
DCHECK_NE(out.size, 0U);
DCHECK_NE(out.index, MediaCodecLoop::kInvalidBufferIndex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment