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

Unified Diff: media/base/stream_parser_buffer.h

Issue 10696182: Add config change handling to SourceBufferStream & ChunkDemuxer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added copyright headers to manifest files Created 8 years, 5 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/byte_queue.h ('k') | media/base/stream_parser_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/stream_parser_buffer.h
diff --git a/media/base/stream_parser_buffer.h b/media/base/stream_parser_buffer.h
index da7f64ff22072ac6358b2ec652c8201285307a66..90e4ca9d8ba4f5b1eba21f2ca55cf6ca86a09b2b 100644
--- a/media/base/stream_parser_buffer.h
+++ b/media/base/stream_parser_buffer.h
@@ -12,6 +12,9 @@ namespace media {
class MEDIA_EXPORT StreamParserBuffer : public DecoderBuffer {
public:
+ // Value used to signal an invalid decoder config ID.
+ enum { kInvalidConfigId = -1 };
+
static scoped_refptr<StreamParserBuffer> CreateEOSBuffer();
static scoped_refptr<StreamParserBuffer> CopyFrom(
const uint8* data, int data_size, bool is_keyframe);
@@ -22,12 +25,18 @@ class MEDIA_EXPORT StreamParserBuffer : public DecoderBuffer {
base::TimeDelta GetDecodeTimestamp() const;
void SetDecodeTimestamp(const base::TimeDelta& timestamp);
+ // Gets/sets the ID of the decoder config associated with this
+ // buffer.
+ int GetConfigId() const;
+ void SetConfigId(int config_id);
+
private:
StreamParserBuffer(const uint8* data, int data_size, bool is_keyframe);
virtual ~StreamParserBuffer();
bool is_keyframe_;
base::TimeDelta decode_timestamp_;
+ int config_id_;
DISALLOW_COPY_AND_ASSIGN(StreamParserBuffer);
};
« no previous file with comments | « media/base/byte_queue.h ('k') | media/base/stream_parser_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698