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

Unified Diff: webkit/glue/media/buffered_data_source.cc

Issue 1736012: Merging SeekableBuffer and BufferQueue (Closed)
Patch Set: + 1 TODO Created 10 years, 8 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
« media/base/seekable_buffer.h ('K') | « media/media.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/media/buffered_data_source.cc
diff --git a/webkit/glue/media/buffered_data_source.cc b/webkit/glue/media/buffered_data_source.cc
index 05aa634d03ebe8270a6378a9f5e0a77bce1de5c7..bf91da03d74cf5a8ec94d9d17e8b731d84057d19 100644
--- a/webkit/glue/media/buffered_data_source.cc
+++ b/webkit/glue/media/buffered_data_source.cc
@@ -321,7 +321,7 @@ void BufferedResourceLoader::OnReceivedData(const char* data, int len) {
return;
// Writes more data to |buffer_|.
- buffer_->Append(len, reinterpret_cast<const uint8*>(data));
+ buffer_->Append(reinterpret_cast<const uint8*>(data), len);
// If there is an active read request, try to fulfill the request.
if (HasPendingRead() && CanFulfillRead()) {
@@ -451,7 +451,7 @@ void BufferedResourceLoader::ReadInternal() {
DCHECK(ret);
// Then do the read.
- int read = static_cast<int>(buffer_->Read(read_size_, read_buffer_));
+ int read = static_cast<int>(buffer_->Read(read_buffer_, read_size_));
offset_ += first_offset_ + read;
// And report with what we have read.
« media/base/seekable_buffer.h ('K') | « media/media.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698