Index: media/base/stream_parser.h |
diff --git a/media/base/stream_parser.h b/media/base/stream_parser.h |
index 3ad3cd77839e62c21c7d8436abf325d21132f834..8976ff80b08356732f5dcfde08b9080a85e40f70 100644 |
--- a/media/base/stream_parser.h |
+++ b/media/base/stream_parser.h |
@@ -86,6 +86,15 @@ class MEDIA_EXPORT StreamParser { |
// Returns true if the parse succeeds. |
virtual bool Parse(const uint8* buf, int size) = 0; |
+ // Gives the parser a time offset to apply to the buffers it parsers, |
+ // beginning at the next media segment. |
+ // First parameter - The time offset. |
+ virtual void SetTimestampOffset(base::TimeDelta offset) = 0; |
+ |
+ // Called to clear the offset set from a call SetTimestampOffset(). Does |
+ // nothing if SetTimestampOffset() was never called before. |
+ virtual void ClearTimestampOffset() = 0; |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(StreamParser); |
}; |