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

Unified Diff: content/renderer/media/render_media_log.cc

Issue 877273002: Add media log messages to the main log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a typo in comments Created 5 years, 9 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 | « no previous file | media/base/media_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/render_media_log.cc
diff --git a/content/renderer/media/render_media_log.cc b/content/renderer/media/render_media_log.cc
index d20f622ec74688be3617ba693d7d4bc6726331d9..83666aa279d7cde9569e02a0b81aa9a4265b0dac 100644
--- a/content/renderer/media/render_media_log.cc
+++ b/content/renderer/media/render_media_log.cc
@@ -27,6 +27,16 @@ void RenderMediaLog::AddEvent(scoped_ptr<media::MediaLogEvent> event) {
return;
}
+ if (event->type == media::MediaLogEvent::PIPELINE_ERROR) {
+ LOG(ERROR) << "MediaEvent: "
+ << media::MediaLog::MediaEventToLogString(*event.get());
+ } else if (event->type != media::MediaLogEvent::BUFFERED_EXTENTS_CHANGED &&
+ event->type != media::MediaLogEvent::PROPERTY_CHANGE &&
+ event->type != media::MediaLogEvent::NETWORK_ACTIVITY_SET) {
+ DVLOG(1) << "MediaEvent: "
+ << media::MediaLog::MediaEventToLogString(*event.get());
+ }
+
// Keep track of the latest buffered extents properties to avoid sending
// thousands of events over IPC. See http://crbug.com/352585 for details.
//
« no previous file with comments | « no previous file | media/base/media_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698