DescriptionAvoid double task trampoline for Pipeline state transitions.
Previously the initialization of ChunkDemuxer and Seeking would
result in a back to back trampoline of callback tasks, this can
lead to odd interleaving of error states when multiple threads
are involved.
In recent history we've stated it's always the callees job to
ensure callbacks are run on the right thread, this change further
clarifies the contract for Renderers and Demuxers that the callback
given to Initialize() must only be run after Initialize() has
returned.
BUG=none
TEST=none
Committed: https://crrev.com/21b128297b19076f5ef83596b9fddbe7c68c4a68
Cr-Commit-Position: refs/heads/master@{#312313}
Patch Set 1 #Patch Set 2 : Fix MojoRendererImpl. #
Total comments: 15
Patch Set 3 : Cleanup. #
Messages
Total messages: 14 (2 generated)
|