Index: media/filters/source_buffer_stream.h |
diff --git a/media/filters/source_buffer_stream.h b/media/filters/source_buffer_stream.h |
index 3f4a2113c7bd572241cc0e993eb6548d2e7537bf..e1b56e5b4ce600f5141bb8f3f501d250da9285e6 100644 |
--- a/media/filters/source_buffer_stream.h |
+++ b/media/filters/source_buffer_stream.h |
@@ -155,10 +155,18 @@ class MEDIA_EXPORT SourceBufferStream { |
// |selected_range_| lives. |
RangeList::iterator GetSelectedRangeItr(); |
+ // Sets the |selected_range_| to |range| and resets the next buffer position |
+ // for the previous |selected_range_|. |
+ void SetSelectedRange(SourceBufferRange* range); |
+ |
// Returns true if the timestamps of |buffers| are monotonically increasing |
// since the previous append to the media segment, false otherwise. |
bool IsMonotonicallyIncreasing(const BufferQueue& buffers); |
+ // Returns true if |selected_range_| is the only range in |ranges_| that |
+ // HasNextBufferPosition(). |
+ bool OnlySelectedRangeIsSeeked() const; |
+ |
// Measures the distances between buffer timestamps and tracks the max. |
void UpdateMaxInterbufferDistance(const BufferQueue& buffers); |