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); |