Notify WebM media segment start when kWebMIdCluster is parsed
commit0409111ce11a6c372b0d30a2476165bcb5438661
authorwolenetz@chromium.org <wolenetz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 18 Jan 2014 02:38:14 +0000 (18 02:38 +0000)
committerwolenetz@chromium.org <wolenetz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 18 Jan 2014 02:38:14 +0000 (18 02:38 +0000)
tree6ff73453a69e7a7531c6a63728f2988017987beb
parent4373f161e1911079735fe04fe96273450a00c8f3
Notify WebM media segment start when kWebMIdCluster is parsed

Fixes WebM stream parser to conform more closely to MSE segment loop
parser's PARSING_MEDIA_SEGMENT state entrance:
Immediately calls the new segment CB when |kWebMIdCluster| is parsed,
instead of waiting until enough data has been appended and parsed
for the cluster parser to determine the cluster start timestamp.
Adds associated unit tests (for WebM).

R=acolwell@chromium.org
BUG=334127
TEST=All media_unittests and MSE layout tests pass locally on Linux

Review URL: https://codereview.chromium.org/133433005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245728 0039d316-1c4b-4281-b951-d872f2087c98
media/filters/chunk_demuxer_unittest.cc
media/webm/webm_parser_unittest.cc
media/webm/webm_stream_parser.cc
media/webm/webm_stream_parser.h