DescriptionMSE: Run appendError on appendData failures
This change lets ChunkDemuxer::AppendData signal parse failure back
to Blink SourceBuffer by its return value. SourceBuffer synchronously
uses that signal to run the append error algorithm (which can enqueue
an 'error' event on the SourceBuffer, among other steps).
In parallel, ChunkDemuxer::ReportError_Locked()
still notifies WMPI and HTMLMediaElement asynchronously via
Pipeline of the error state.
BUG=620903
TEST=Updated mediasource-errors.html, ChunkDemuxerTests, PipelineIntegrationTests
Committed: https://crrev.com/4f0ed2f67852f56ecc8d5ca1605b1ff81a26afd9
Cr-Commit-Position: refs/heads/master@{#401439}
Patch Set 1 #Patch Set 2 : Fixed the 3 media_unittests crash regressions from PS1 #Patch Set 3 : Fixed the 5 ChunkDemuxerTest non-crash regressions from PS1 #Patch Set 4 : Fixed the 3 non-crash PipelineIntegrationTest regressions from PS1 #Patch Set 5 : Fixed the layout test #
Total comments: 8
Patch Set 6 : Fix flaky layout test and addressed Philip's and dcheng@'s comments #Patch Set 7 : Rebase #Messages
Total messages: 28 (12 generated)
|