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

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: Address PS3 comments 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 857dcfd3e6c607c7aaf1bdbac356272d2e5f8e65..7463bcdc144c53215227f20ed98bc20cd11b32fb 100644
--- a/media/filters/chunk_demuxer.h
+++ b/media/filters/chunk_demuxer.h
@@ -124,6 +124,12 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
// middle of parsing a media segment.
bool SetTimestampOffset(const std::string& id, base::TimeDelta offset);
+ // Retrieves the current offset being applied to subsequent buffers appended
+ // to the source buffer associated with |id|. If the implementation has not
+ // changed the offset since construction or the last SetTimestampOffset(),
+ // returns kNoTimestamp() instead to indicate it has not been updated.
+ base::TimeDelta GetUpdatedTimestampOffset(const std::string& id);
+
// Set the append mode to be applied to subsequent buffers appended to the
// source buffer associated with |id|. If |sequence_mode| is true, caller
// is requesting "sequence" mode. Otherwise, caller is requesting "segments"

Powered by Google App Engine
This is Rietveld 408576698