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

Unified Diff: Source/modules/mediasource/SourceBufferList.cpp

Issue 552943002: MSE: Start letting SourceBuffer begin to do initialization segment received algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Addressed philipj@'s PS5 comments. Created 6 years, 3 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 | « Source/modules/mediasource/SourceBufferList.h ('k') | public/platform/WebSourceBuffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediasource/SourceBufferList.cpp
diff --git a/Source/modules/mediasource/SourceBufferList.cpp b/Source/modules/mediasource/SourceBufferList.cpp
index 032ec6de3b23c869a2d1473e11a1065784b84188..3b7383be084a410be7795f307c2def72ecd93752 100644
--- a/Source/modules/mediasource/SourceBufferList.cpp
+++ b/Source/modules/mediasource/SourceBufferList.cpp
@@ -56,6 +56,12 @@ void SourceBufferList::add(SourceBuffer* buffer)
scheduleEvent(EventTypeNames::addsourcebuffer);
}
+void SourceBufferList::insert(size_t position, SourceBuffer* buffer)
+{
+ m_list.insert(position, buffer);
+ scheduleEvent(EventTypeNames::addsourcebuffer);
+}
+
void SourceBufferList::remove(SourceBuffer* buffer)
{
size_t index = m_list.find(buffer);
« no previous file with comments | « Source/modules/mediasource/SourceBufferList.h ('k') | public/platform/WebSourceBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698