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

Unified Diff: media/filters/source_buffer_stream.h

Issue 10736021: Reland r145965 - Make sure previous seek points in SourceBufferStream are ignored during overlaps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix asan 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
« no previous file with comments | « no previous file | media/filters/source_buffer_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | media/filters/source_buffer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698