OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/base/media_log.h" | 5 #include "media/base/media_log.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 case PIPELINE_ERROR_NETWORK: | 94 case PIPELINE_ERROR_NETWORK: |
95 return "pipeline: network error"; | 95 return "pipeline: network error"; |
96 case PIPELINE_ERROR_DECODE: | 96 case PIPELINE_ERROR_DECODE: |
97 return "pipeline: decode error"; | 97 return "pipeline: decode error"; |
98 case PIPELINE_ERROR_ABORT: | 98 case PIPELINE_ERROR_ABORT: |
99 return "pipeline: abort"; | 99 return "pipeline: abort"; |
100 case PIPELINE_ERROR_INITIALIZATION_FAILED: | 100 case PIPELINE_ERROR_INITIALIZATION_FAILED: |
101 return "pipeline: initialization failed"; | 101 return "pipeline: initialization failed"; |
102 case PIPELINE_ERROR_COULD_NOT_RENDER: | 102 case PIPELINE_ERROR_COULD_NOT_RENDER: |
103 return "pipeline: could not render"; | 103 return "pipeline: could not render"; |
| 104 case PIPELINE_ERROR_EXTERNAL_RENDERER_FAILED: |
| 105 return "pipeline: external renderer failed"; |
104 case PIPELINE_ERROR_READ: | 106 case PIPELINE_ERROR_READ: |
105 return "pipeline: read error"; | 107 return "pipeline: read error"; |
106 case PIPELINE_ERROR_INVALID_STATE: | 108 case PIPELINE_ERROR_INVALID_STATE: |
107 return "pipeline: invalid state"; | 109 return "pipeline: invalid state"; |
108 case DEMUXER_ERROR_COULD_NOT_OPEN: | 110 case DEMUXER_ERROR_COULD_NOT_OPEN: |
109 return "demuxer: could not open"; | 111 return "demuxer: could not open"; |
110 case DEMUXER_ERROR_COULD_NOT_PARSE: | 112 case DEMUXER_ERROR_COULD_NOT_PARSE: |
111 return "demuxer: could not parse"; | 113 return "demuxer: could not parse"; |
112 case DEMUXER_ERROR_NO_SUPPORTED_STREAMS: | 114 case DEMUXER_ERROR_NO_SUPPORTED_STREAMS: |
113 return "demuxer: no supported streams"; | 115 return "demuxer: no supported streams"; |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 const scoped_refptr<MediaLog>& media_log) | 287 const scoped_refptr<MediaLog>& media_log) |
286 : level_(level), media_log_(media_log) { | 288 : level_(level), media_log_(media_log) { |
287 DCHECK(media_log_.get()); | 289 DCHECK(media_log_.get()); |
288 } | 290 } |
289 | 291 |
290 LogHelper::~LogHelper() { | 292 LogHelper::~LogHelper() { |
291 media_log_->AddLogEvent(level_, stream_.str()); | 293 media_log_->AddLogEvent(level_, stream_.str()); |
292 } | 294 } |
293 | 295 |
294 } //namespace media | 296 } //namespace media |
OLD | NEW |