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

Unified Diff: media/base/seekable_buffer.h

Issue 2008010: Fixes in AlsaPcmOutputStream. (Closed)
Patch Set: - Created 10 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
Index: media/base/seekable_buffer.h
diff --git a/media/base/seekable_buffer.h b/media/base/seekable_buffer.h
index 9275cf81f15e715e9ac0fc9388322b4c17c6da69..1a423e0d894dcd5717800087bfd116fff0c4eba7 100644
--- a/media/base/seekable_buffer.h
+++ b/media/base/seekable_buffer.h
@@ -64,6 +64,13 @@ class SeekableBuffer {
// number of bytes copied. Doesn't advance current position.
size_t Peek(uint8* data, size_t size);
+ // Returns pointer to the current chunk of data that is being consumed.
+ // If there is no data left in the buffer false is returned, otherwise
+ // true is returned and |data| and |size| are updated. The returned
+ // |data| value becomes invalid when Read(), Append() or Seek()
+ // are called.
+ bool GetCurrentChunk(const uint8** data, size_t* size) const;
+
// Appends |buffer_in| to this buffer. Returns false if forward_bytes() is
// greater than or equals to forward_capacity(), true otherwise. The data
// is added to the buffer in any case.

Powered by Google App Engine
This is Rietveld 408576698