Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(716)

Unified Diff: media/base/android/media_codec_video_decoder.cc

Issue 1325153005: More logs to debug AVPrerollVideoEndsWhilePrerolling on bot (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/android/media_codec_player_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_codec_video_decoder.cc
diff --git a/media/base/android/media_codec_video_decoder.cc b/media/base/android/media_codec_video_decoder.cc
index 485b2359f22ec6898c6282088bf4f1a7a2a0bdaf..4eae219d7cade9fcbe3f69f01cd91668be99e580 100644
--- a/media/base/android/media_codec_video_decoder.cc
+++ b/media/base/android/media_codec_video_decoder.cc
@@ -213,9 +213,15 @@ void MediaCodecVideoDecoder::Render(int buffer_index,
bool eos_encountered) {
DCHECK(decoder_thread_.task_runner()->BelongsToCurrentThread());
- DVLOG(2) << class_name() << "::" << __FUNCTION__ << " pts:" << pts
- << " index:" << buffer_index << " size:" << size
- << (eos_encountered ? " EOS " : " ") << AsString(render_mode);
+ // http://crbug.com/526755
+ if (verbose_) {
+ DVLOG(0) << class_name() << "::" << __FUNCTION__ << " pts:" << pts
+ << (eos_encountered ? " EOS " : " ") << AsString(render_mode);
+ } else {
+ DVLOG(2) << class_name() << "::" << __FUNCTION__ << " pts:" << pts
+ << " index:" << buffer_index << " size:" << size
+ << (eos_encountered ? " EOS " : " ") << AsString(render_mode);
+ }
// Normally EOS comes as a separate access unit that does not have data,
// the corresponding |size| will be 0.
@@ -307,7 +313,13 @@ void MediaCodecVideoDecoder::ReleaseOutputBuffer(int buffer_index,
bool eos_encountered) {
DCHECK(decoder_thread_.task_runner()->BelongsToCurrentThread());
- DVLOG(2) << class_name() << "::" << __FUNCTION__ << " pts:" << pts;
+ // http://crbug.com/526755
+ if (verbose_) {
+ DVLOG(0) << class_name() << "::" << __FUNCTION__ << " pts:" << pts
+ << " eos_encountered:" << eos_encountered;
+ } else {
+ DVLOG(2) << class_name() << "::" << __FUNCTION__ << " pts:" << pts;
+ }
// Do not render if we are in emergency stop, there might be no surface.
if (InEmergencyStop())
« no previous file with comments | « media/base/android/media_codec_player_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698