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

Unified Diff: media/base/stream_parser_buffer.h

Issue 1018373003: Improving WebM video duration estimation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing try failure, remove unused variable for some builds. Created 5 years, 8 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/decoder_buffer.cc ('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 f894381e34691e159ca6f8ef1dd399d82b42a883..c614828537a56ad134278388e1491db46da2bfa2 100644
--- a/media/base/stream_parser_buffer.h
+++ b/media/base/stream_parser_buffer.h
@@ -170,6 +170,12 @@ class MEDIA_EXPORT StreamParserBuffer : public DecoderBuffer {
void set_timestamp(base::TimeDelta timestamp) override;
+ bool is_duration_estimated() const { return is_duration_estimated_; }
+
+ void set_is_duration_estimated(bool is_estimated) {
+ is_duration_estimated_ = is_estimated;
+ }
+
private:
StreamParserBuffer(const uint8* data, int data_size,
const uint8* side_data, int side_data_size,
@@ -183,6 +189,7 @@ class MEDIA_EXPORT StreamParserBuffer : public DecoderBuffer {
TrackId track_id_;
BufferQueue splice_buffers_;
scoped_refptr<StreamParserBuffer> preroll_buffer_;
+ bool is_duration_estimated_;
DISALLOW_COPY_AND_ASSIGN(StreamParserBuffer);
};
« no previous file with comments | « media/base/decoder_buffer.cc ('k') | media/base/stream_parser_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698