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

Unified Diff: media/blink/buffered_data_source.cc

Issue 594733004: BufferedDataSource: don't reallocate buffer unnecessarily (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/buffered_data_source.cc
diff --git a/media/blink/buffered_data_source.cc b/media/blink/buffered_data_source.cc
index 91ed1a254c8c43cba43aa8011d0e2501cb6a3c51..8559661781c3573cc109fc8bd20a3de1185f98c2 100644
--- a/media/blink/buffered_data_source.cc
+++ b/media/blink/buffered_data_source.cc
@@ -316,6 +316,7 @@ void BufferedDataSource::ReadInternal() {
// to write to.
if (size > intermediate_read_buffer_size_) {
intermediate_read_buffer_.reset(new uint8[size]);
+ intermediate_read_buffer_size_ = size;
xhwang 2014/09/23 20:56:22 Thanks for fixing this! The fix looks good. But I
}
// Perform the actual read with BufferedResourceLoader.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698