diff options
author | acolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-20 23:05:56 +0000 |
---|---|---|
committer | acolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-20 23:05:56 +0000 |
commit | 2346e11b8a7166efb5b63a8823854f8b06f6352d (patch) | |
tree | 39e05d6e03fb7a7a7e19c3c06f19ee2aae772876 /media/base/byte_queue.h | |
parent | 674bc59999a151a3a8f76bb4c24cc3bee2f39090 (diff) | |
download | chromium_src-2346e11b8a7166efb5b63a8823854f8b06f6352d.zip chromium_src-2346e11b8a7166efb5b63a8823854f8b06f6352d.tar.gz chromium_src-2346e11b8a7166efb5b63a8823854f8b06f6352d.tar.bz2 |
Fix ChunkDemuxer seeks that occur during a partially parsed cluster.
BUG=104160
TEST=ChunkDemuxerTest.TestSeekWhileParsingCluster, WebMParserTest.TestReset
Review URL: http://codereview.chromium.org/9010001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115214 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/byte_queue.h')
-rw-r--r-- | media/base/byte_queue.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/base/byte_queue.h b/media/base/byte_queue.h index 69f2728..d3ef605 100644 --- a/media/base/byte_queue.h +++ b/media/base/byte_queue.h @@ -20,6 +20,9 @@ class ByteQueue { ByteQueue(); ~ByteQueue(); + // Reset the queue to the empty state. + void Reset(); + // Appends new bytes onto the end of the queue. void Push(const uint8* data, int size); |