Index: media/filters/source_buffer_stream.h |
diff --git a/media/filters/source_buffer_stream.h b/media/filters/source_buffer_stream.h |
index 78ba800bcd0c9b778bee3bed85fb95eec832ee96..b2e70b031a3ad260560bb88940188c5617a072d4 100644 |
--- a/media/filters/source_buffer_stream.h |
+++ b/media/filters/source_buffer_stream.h |
@@ -67,6 +67,10 @@ class MEDIA_EXPORT SourceBufferStream { |
// buffered data and is waiting for more data to be appended. |
bool IsSeekPending() const; |
+ // Notifies the SourceBufferStream that the media duration has been changed to |
+ // |duration| so it should drop any data past that point. |
+ void OnSetDuration(base::TimeDelta duration); |
+ |
// Fills |out_buffer| with a new buffer. Buffers are presented in order from |
// the last call to Seek(), or starting with the first buffer appended if |
// Seek() has not been called yet. |
@@ -177,6 +181,9 @@ class MEDIA_EXPORT SourceBufferStream { |
// for the previous |selected_range_|. |
void SetSelectedRange(SourceBufferRange* range); |
+ // Resets this stream back to an unseeked state. |
+ void ResetSeekState(); |
+ |
// Returns true if |seek_timestamp| refers to the beginning of the first range |
// in |ranges_|, false otherwise or if |ranges_| is empty. |
bool ShouldSeekToStartOfBuffered(base::TimeDelta seek_timestamp) const; |