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

Unified Diff: media/filters/chunk_demuxer.h

Issue 178153004: Enable round-tripping and updating of WebSourceBufferImpl timestamp offset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow NULL for WSBI::append()'s |new_timestamp_offset| parameter Created 6 years, 10 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
Index: media/filters/chunk_demuxer.h
diff --git a/media/filters/chunk_demuxer.h b/media/filters/chunk_demuxer.h
index a87e128383b890fe14d1642a580f78ceab74afb8..c4f3bedef5fe09056c0f90f164f01ec47033ca1d 100644
--- a/media/filters/chunk_demuxer.h
+++ b/media/filters/chunk_demuxer.h
@@ -99,7 +99,11 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
Ranges<base::TimeDelta> GetBufferedRanges(const std::string& id) const;
// Appends media data to the source buffer associated with |id|.
- void AppendData(const std::string& id, const uint8* data, size_t length);
+ // If the append does not update the source buffer's timestamp offset,
+ // sets |*new_timestamp_offset| to kNoTimestamp(). Otherwise, sets it to the
+ // updated timestamp offset.
+ void AppendData(const std::string& id, const uint8* data, size_t length,
+ base::TimeDelta* new_timestamp_offset);
// Aborts parsing the current segment and reset the parser to a state where
// it can accept a new segment.

Powered by Google App Engine
This is Rietveld 408576698