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

Unified Diff: media/filters/source_buffer_stream.h

Issue 11471006: Log MediaSource parsing errors to the MediaLog so they can appear in chrome:media-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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
Index: media/filters/source_buffer_stream.h
diff --git a/media/filters/source_buffer_stream.h b/media/filters/source_buffer_stream.h
index a3757cbaa1c021fd94499d393354b4907e0b33a4..2b653c8e2e6ec7de077842de09319d537c08c89e 100644
--- a/media/filters/source_buffer_stream.h
+++ b/media/filters/source_buffer_stream.h
@@ -18,6 +18,7 @@
#include "base/memory/ref_counted.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/media_export.h"
+#include "media/base/media_log.h"
#include "media/base/ranges.h"
#include "media/base/stream_parser_buffer.h"
#include "media/base/video_decoder_config.h"
@@ -42,8 +43,10 @@ class MEDIA_EXPORT SourceBufferStream {
kConfigChange,
};
- explicit SourceBufferStream(const AudioDecoderConfig& audio_config);
- explicit SourceBufferStream(const VideoDecoderConfig& video_config);
+ SourceBufferStream(const AudioDecoderConfig& audio_config,
+ const ErrorLogCB& error_cb);
+ SourceBufferStream(const VideoDecoderConfig& video_config,
+ const ErrorLogCB& error_cb);
~SourceBufferStream();
@@ -237,6 +240,10 @@ class MEDIA_EXPORT SourceBufferStream {
// kSuccess.
void CompleteConfigChange();
+ // Callback used to report error strings that can help the web developer
+ // figure out what is wrong with the content.
+ ErrorLogCB error_cb_;
+
// List of disjoint buffered ranges, ordered by start time.
RangeList ranges_;

Powered by Google App Engine
This is Rietveld 408576698