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

Unified Diff: media/webm/webm_cluster_parser.h

Issue 10803019: Chrome-side implementation of media source timestamp offset (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
Index: media/webm/webm_cluster_parser.h
diff --git a/media/webm/webm_cluster_parser.h b/media/webm/webm_cluster_parser.h
index 0af03617fbf57b3719abf907959c47f0af4b4cc3..be09008e08a3aa65dd01b496f23e028399cf6dc1 100644
--- a/media/webm/webm_cluster_parser.h
+++ b/media/webm/webm_cluster_parser.h
@@ -40,6 +40,13 @@ class MEDIA_EXPORT WebMClusterParser : public WebMParserClient {
const BufferQueue& audio_buffers() const { return audio_.buffers(); }
const BufferQueue& video_buffers() const { return video_.buffers(); }
+ // Tells the parser to apply |offset| to the timestamp of the next buffers it
+ // parses.
+ void SetTimestampOffset(base::TimeDelta offset);
+
+ // Resets |timestamp_offset_|.
+ void ClearTimestampOffset();
+
private:
// Helper class that manages per-track state.
class Track {
@@ -88,6 +95,9 @@ class MEDIA_EXPORT WebMClusterParser : public WebMParserClient {
Track audio_;
Track video_;
+ // An offset to apply to the timestamp of each buffer.
+ base::TimeDelta timestamp_offset_;
+
DISALLOW_IMPLICIT_CONSTRUCTORS(WebMClusterParser);
};

Powered by Google App Engine
This is Rietveld 408576698