DescriptionAdd a flushing mechanism for the WebVTTParser
In the WebVTT parser there's an ad-hoc "end-of-stream" check for when
a pending cue should be flushed from the parser. The condition used
however is not reliable given multiple buffers.
To rectify this, add a flush() method to WebVTTParser, and call it
from TextTrackLoader::notifyFinished. Then let this new flush() method
take care of flushing any pending cue from the parser.
BUG=231460
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161519
Patch Set 1 #Patch Set 2 : With Testcase #Patch Set 3 : Force LF on TC #Patch Set 4 : Even more binary #
Messages
Total messages: 15 (0 generated)
|