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

Unified Diff: media/blink/resource_multibuffer_data_provider.cc

Issue 2910553002: fully cache small audio/video (Closed)
Patch Set: comment added Created 3 years, 7 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 | « media/blink/multibuffer_data_source_unittest.cc ('k') | media/blink/url_index.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/resource_multibuffer_data_provider.cc
diff --git a/media/blink/resource_multibuffer_data_provider.cc b/media/blink/resource_multibuffer_data_provider.cc
index 18a8847fda2ec2cf63f94eac7bc763ea12af1d7e..54f0d73b40960b723731db21b06ce8ae9afdcaea 100644
--- a/media/blink/resource_multibuffer_data_provider.cc
+++ b/media/blink/resource_multibuffer_data_provider.cc
@@ -452,6 +452,10 @@ void ResourceMultiBufferDataProvider::DidFinishLoading(double finishTime) {
url_data_->set_length(size);
fifo_.push_back(DataBuffer::CreateEOSBuffer());
+ if (url_data_->url_index()) {
+ url_data_->url_index()->TryInsert(url_data_);
+ }
+
DCHECK(Available());
url_data_->multibuffer()->OnDataProviderEvent(this);
« no previous file with comments | « media/blink/multibuffer_data_source_unittest.cc ('k') | media/blink/url_index.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698