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

Issue 2472183004: [TO 54] AudioRendererImpl: Don't advance time when rendering stops. (Closed)

Created:
4 years, 1 month ago by chcunningham
Modified:
4 years, 1 month ago
CC:
chromium-reviews, blink-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/branch-heads/2840
Project:
chromium
Visibility:
Public.

Description

[TO 54] AudioRendererImpl: Don't advance time when rendering stops. This is a quick work-around for the bug below. AudioRendererImpl was recently improved to estimate time's advancing along the last rendered audio buffer between Render() calls. This means the clock is capable of still advancing a bit after OnBufferingStateChange indicates we've run out of data. While tehcnically correct, the clocks advancing causes blink to emit 'timeupdate' events with time advancing after emitting 'waiting' indicating that no data is buffered. This change stops the clock once the render has underflowed. Longterm, blink should be improved to gaurd against emitting timeupdate after waiting. This larger change will be done separately to give it time to bake. https://codereview.chromium.org/2425463002/ BUG=648710 Review-Url: https://codereview.chromium.org/2423903003 Cr-Commit-Position: refs/heads/master@{#425871} (cherry picked from commit 9409db28cd7402d4bad8022afbd2b3719de72d08) --ALSO-- [TO 54] AudioRendererImpl: Fix data race. Previous CL introduced multithreaded access to |rendering_|. https://codereview.chromium.org/2423903003/ BUG=657001, 648710 Review-Url: https://chromiumcodereview.appspot.com/2434003002 Cr-Commit-Position: refs/heads/master@{#426312} (cherry picked from commit e2f429e24bdbcd8e8379b909879e2c729490e1c6) TBR=sandersd@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/273ba7eecd4b8654aae31b6980d8094a39b9a392

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -6 lines) Patch
M media/renderers/audio_renderer_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M media/renderers/audio_renderer_impl.cc View 5 chunks +24 lines, -2 lines 0 comments Download
M media/renderers/audio_renderer_impl_unittest.cc View 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/media/video-play-stall.html View 3 chunks +26 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (8 generated)
chcunningham
4 years, 1 month ago (2016-11-04 23:25:08 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
273ba7eecd4b8654aae31b6980d8094a39b9a392.

Powered by Google App Engine
This is Rietveld 408576698