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

Issue 2363983003: Transition to have nothing if background rendering evicts all frames. (Closed)

Created:
4 years, 3 months ago by DaleCurtis
Modified:
4 years, 2 months ago
Reviewers:
watk
CC:
chromium-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Transition to have nothing if background rendering evicts all frames. If we're background rendering it's possible for us to expire all frames if the audio renderer advances too far ahead. In this case we need to transition into the HAVE_NOTHING state so the Renderer is aware we don't have frames. It seems possible for this bug to permanently hang video playback in release builds since the renderer has no idea what state we're in and the video renderer will never transition to have enough. BUG=630860 TEST=new unittest. Committed: https://crrev.com/fdde31284d8d1fb76451c55e6a579b34f5aa35f1 Cr-Commit-Position: refs/heads/master@{#420808}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -1 line) Patch
M media/renderers/video_renderer_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/renderers/video_renderer_impl.cc View 3 chunks +17 lines, -1 line 2 comments Download
M media/renderers/video_renderer_impl_unittest.cc View 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
DaleCurtis
4 years, 3 months ago (2016-09-23 23:36:51 UTC) #2
watk
lgtm
4 years, 3 months ago (2016-09-24 00:26:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2363983003/1
4 years, 3 months ago (2016-09-24 00:27:21 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-24 01:26:06 UTC) #9
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/fdde31284d8d1fb76451c55e6a579b34f5aa35f1 Cr-Commit-Position: refs/heads/master@{#420808}
4 years, 3 months ago (2016-09-24 01:28:24 UTC) #11
watk
https://codereview.chromium.org/2363983003/diff/1/media/renderers/video_renderer_impl.cc File media/renderers/video_renderer_impl.cc (right): https://codereview.chromium.org/2363983003/diff/1/media/renderers/video_renderer_impl.cc#newcode320 media/renderers/video_renderer_impl.cc:320: base::AutoLock al(lock_); I just noticed this. The comment on ...
4 years, 2 months ago (2016-09-26 23:12:43 UTC) #12
DaleCurtis
4 years, 2 months ago (2016-09-26 23:23:42 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/2363983003/diff/1/media/renderers/video_rende...
File media/renderers/video_renderer_impl.cc (right):

https://codereview.chromium.org/2363983003/diff/1/media/renderers/video_rende...
media/renderers/video_renderer_impl.cc:320: base::AutoLock al(lock_);
On 2016/09/26 at 23:12:43, watk wrote:
> I just noticed this. The comment on l.292 says not to hold lock_ :\ Is this a
deadlock?

I think the comment is out of date since we no longer issue buffering state
changes w/o posting. I don't see any other cases where this could be reentrant
now.

Powered by Google App Engine
This is Rietveld 408576698