Index: media/base/media_log.cc |
diff --git a/media/base/media_log.cc b/media/base/media_log.cc |
index 6e21cff485a902c2f91ff0489e4df026ca5ebe6a..5e000f0f3cb175c090a64128e107aa04a7f9b2f5 100644 |
--- a/media/base/media_log.cc |
+++ b/media/base/media_log.cc |
@@ -141,7 +141,10 @@ scoped_ptr<MediaLogEvent> MediaLog::CreateStringEvent( |
scoped_ptr<MediaLogEvent> MediaLog::CreateTimeEvent( |
MediaLogEvent::Type type, const char* property, base::TimeDelta value) { |
scoped_ptr<MediaLogEvent> event(CreateEvent(type)); |
- event->params.SetDouble(property, value.InSecondsF()); |
+ if (value.is_max()) |
+ event->params.SetString(property, "unknown"); |
+ else |
+ event->params.SetDouble(property, value.InSecondsF()); |
return event.Pass(); |
} |