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, ...@@ -178,7 +178,7 @@ void MediaCodecAudioDecoder::Decode(scoped_refptr<DecoderBuffer> buffer,
DCHECK(codec_loop_); DCHECK(codec_loop_);
DVLOG(2) << __func__ << " " << buffer->AsHumanReadableString(); DVLOG(3) << __func__ << " " << buffer->AsHumanReadableString();
DCHECK_EQ(state_, STATE_READY) << " unexpected state " << AsString(state_); DCHECK_EQ(state_, STATE_READY) << " unexpected state " << AsString(state_);
...@@ -192,7 +192,7 @@ void MediaCodecAudioDecoder::Decode(scoped_refptr<DecoderBuffer> buffer, ...@@ -192,7 +192,7 @@ void MediaCodecAudioDecoder::Decode(scoped_refptr<DecoderBuffer> buffer,
} }
void MediaCodecAudioDecoder::Reset(const base::Closure& closure) { void MediaCodecAudioDecoder::Reset(const base::Closure& closure) {
DVLOG(1) << __func__; DVLOG(2) << __func__;
ClearInputQueue(DecodeStatus::ABORTED); ClearInputQueue(DecodeStatus::ABORTED);
...@@ -287,7 +287,7 @@ bool MediaCodecAudioDecoder::IsAnyInputPending() const { ...@@ -287,7 +287,7 @@ bool MediaCodecAudioDecoder::IsAnyInputPending() const {
} }
MediaCodecLoop::InputData MediaCodecAudioDecoder::ProvideInputData() { MediaCodecLoop::InputData MediaCodecAudioDecoder::ProvideInputData() {
DVLOG(2) << __func__; DVLOG(3) << __func__;
const DecoderBuffer* decoder_buffer = input_queue_.front().first.get(); const DecoderBuffer* decoder_buffer = input_queue_.front().first.get();
...@@ -338,7 +338,7 @@ void MediaCodecAudioDecoder::ClearInputQueue(DecodeStatus decode_status) { ...@@ -338,7 +338,7 @@ void MediaCodecAudioDecoder::ClearInputQueue(DecodeStatus decode_status) {
} }
void MediaCodecAudioDecoder::SetState(State new_state) { void MediaCodecAudioDecoder::SetState(State new_state) {
DVLOG(1) << __func__ << ": " << AsString(state_) << "->" DVLOG(3) << __func__ << ": " << AsString(state_) << "->"
<< AsString(new_state); << AsString(new_state);
state_ = new_state; state_ = new_state;
} }
...@@ -376,7 +376,7 @@ bool MediaCodecAudioDecoder::OnDecodedEos( ...@@ -376,7 +376,7 @@ bool MediaCodecAudioDecoder::OnDecodedEos(
bool MediaCodecAudioDecoder::OnDecodedFrame( bool MediaCodecAudioDecoder::OnDecodedFrame(
const MediaCodecLoop::OutputBuffer& out) { const MediaCodecLoop::OutputBuffer& out) {
DVLOG(2) << __func__ << " pts:" << out.pts; DVLOG(3) << __func__ << " pts:" << out.pts;
DCHECK_NE(out.size, 0U); DCHECK_NE(out.size, 0U);
DCHECK_NE(out.index, MediaCodecLoop::kInvalidBufferIndex); 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