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); |
}; |