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

Unified Diff: media/base/byte_queue.cc

Issue 9010001: Fix ChunkDemuxer seeks that occur during a partially parsed cluster. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits & rebase Created 9 years 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/base/byte_queue.h ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/byte_queue.cc
diff --git a/media/base/byte_queue.cc b/media/base/byte_queue.cc
index 8f4fee8c4c275bed60e812cf5a5d846fb1697c08..e91bfb71fc3db28b1f1a8914989ef0f14dfd442f 100644
--- a/media/base/byte_queue.cc
+++ b/media/base/byte_queue.cc
@@ -20,6 +20,11 @@ ByteQueue::ByteQueue()
ByteQueue::~ByteQueue() {}
+void ByteQueue::Reset() {
+ offset_ = 0;
+ used_ = 0;
+}
+
void ByteQueue::Push(const uint8* data, int size) {
DCHECK(data);
DCHECK_GT(size, 0);
« no previous file with comments | « media/base/byte_queue.h ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698