Index: webrtc/base/bufferqueue.h |
diff --git a/webrtc/base/bufferqueue.h b/webrtc/base/bufferqueue.h |
index 458f0189cdbe541301cbd9e5bacacdd953a67db7..cf231198e1684ed7c788c287289f89e340050604 100644 |
--- a/webrtc/base/bufferqueue.h |
+++ b/webrtc/base/bufferqueue.h |
@@ -28,6 +28,9 @@ class BufferQueue { |
// Return number of queued buffers. |
size_t size() const; |
+ // Clear the BufferQueue by moving all Buffers from |queue_| to |free_list_|. |
+ void Clear(); |
+ |
// ReadFront will only read one buffer at a time and will truncate buffers |
// that don't fit in the passed memory. |
// Returns true unless no data could be returned. |