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

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: . 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 | « no previous file | media/base/stream_parser_buffer.cc » ('j') | media/filters/chunk_demuxer.cc » ('J')
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..697a85acf178b57790f094e5c813f5fd793eb060 100644
--- a/media/base/stream_parser_buffer.h
+++ b/media/base/stream_parser_buffer.h
@@ -22,12 +22,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);
xhwang 2012/07/12 18:09:12 Here and above, should we follow the style guide a
acolwell GONE FROM CHROMIUM 2012/07/12 23:07:58 These match the style of getter/setter's in Decode
+
private:
StreamParserBuffer(const uint8* data, int data_size, bool is_keyframe);
virtual ~StreamParserBuffer();
bool is_keyframe_;
base::TimeDelta decode_timestamp_;
+ int config_id_;
xhwang 2012/07/12 18:09:12 Add comment? e.g. -1 means an invalid id?
acolwell GONE FROM CHROMIUM 2012/07/12 23:07:58 Done. Created a named constant to document the mea
DISALLOW_COPY_AND_ASSIGN(StreamParserBuffer);
};
« no previous file with comments | « no previous file | media/base/stream_parser_buffer.cc » ('j') | media/filters/chunk_demuxer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698