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

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: Initializes |user_specified_timestamp_offset_| to 0.0. 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..f74e2a832f4ec5e376a735a0041d2f153ac677ee 100644
--- a/media/filters/chunk_demuxer.h
+++ b/media/filters/chunk_demuxer.h
@@ -122,7 +122,11 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
// source buffer associated with |id|. Returns true if the offset is set
// properly, false if the offset cannot be applied because we're in the
// middle of parsing a media segment.
- bool SetTimestampOffset(const std::string& id, base::TimeDelta offset);
+ bool SetTimestampOffset(const std::string& id, double offset);
+
+ // Retrieves the current offset being applied to subsequent buffers appended
+ // to the source buffer associated with |id|.
+ double GetTimestampOffset(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

Powered by Google App Engine
This is Rietveld 408576698