DescriptionPipeline: Call clock_->SetTime() right before StartPlayingFrom().
Currently we call clock_->SetTime() before we flush the renderers. This CL
moves it to right before we call StartPlayingFrom(start_timestamp_). This
makes it easier in a later CL to hide all clock logic into a new Renderer
implementation.
This CL also fixed the PipelineTest.Seek test. Originally we AddTextStream()
in the text which causes a TextRenderer::Read(). But we never satisfy or
abort that Read(). This caused TextRenderer::Pause() to never return the
completion callback. Therefore, the pipeline seek process never finishes.
This test was passing because we SetTime() before we DoSeek(). Now I moved
SetTime() after DoSeek() and this issue is exposed.
BUG=392259
TEST=All existing tests pass.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281938
Patch Set 1 #Patch Set 2 : #
Total comments: 2
Patch Set 3 : comments addressed #
Total comments: 2
Patch Set 4 : comments addressed #Patch Set 5 : Fix PipelineTest.Seek #Messages
Total messages: 14 (0 generated)
|