Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(453)

Issue 377003002: Pipeline: Call clock_->SetTime() right before StartPlayingFrom(). (Closed)

Created:
6 years, 5 months ago by xhwang
Modified:
6 years, 5 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Pipeline: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -13 lines) Patch
M media/base/pipeline.cc View 1 2 3 5 chunks +10 lines, -12 lines 0 comments Download
M media/base/pipeline_unittest.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
xhwang
PTAL
6 years, 5 months ago (2014-07-08 18:22:32 UTC) #1
scherkus (not reviewing)
https://codereview.chromium.org/377003002/diff/20001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/377003002/diff/20001/media/base/pipeline.cc#newcode59 media/base/pipeline.cc:59: base::AutoLock auto_lock(lock_); we shouldn't have any synchronization issues inside ...
6 years, 5 months ago (2014-07-08 18:37:20 UTC) #2
xhwang
comments addressed
6 years, 5 months ago (2014-07-08 19:32:09 UTC) #3
xhwang
PTAL again. https://codereview.chromium.org/377003002/diff/20001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/377003002/diff/20001/media/base/pipeline.cc#newcode59 media/base/pipeline.cc:59: base::AutoLock auto_lock(lock_); On 2014/07/08 18:37:20, scherkus wrote: ...
6 years, 5 months ago (2014-07-08 19:32:16 UTC) #4
scherkus (not reviewing)
lgtm w/ nit https://codereview.chromium.org/377003002/diff/40001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/377003002/diff/40001/media/base/pipeline.cc#newcode59 media/base/pipeline.cc:59: // base media time so our ...
6 years, 5 months ago (2014-07-08 21:21:06 UTC) #5
xhwang
comments addressed
6 years, 5 months ago (2014-07-08 21:23:58 UTC) #6
xhwang
https://codereview.chromium.org/377003002/diff/40001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/377003002/diff/40001/media/base/pipeline.cc#newcode59 media/base/pipeline.cc:59: // base media time so our timestamp calculations will ...
6 years, 5 months ago (2014-07-08 21:24:36 UTC) #7
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 5 months ago (2014-07-08 21:24:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/377003002/60001
6 years, 5 months ago (2014-07-08 21:27:58 UTC) #9
xhwang
scherkus: I fixed a failing test. Please see updated CL description for details. PTAL again!
6 years, 5 months ago (2014-07-08 23:11:57 UTC) #10
scherkus (not reviewing)
lgtm
6 years, 5 months ago (2014-07-08 23:56:54 UTC) #11
xhwang
The CQ bit was checked by xhwang@chromium.org
6 years, 5 months ago (2014-07-09 00:00:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/377003002/80001
6 years, 5 months ago (2014-07-09 00:05:07 UTC) #13
commit-bot: I haz the power
6 years, 5 months ago (2014-07-09 04:53:58 UTC) #14
Message was sent while issue was closed.
Change committed as 281938

Powered by Google App Engine
This is Rietveld 408576698