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

Issue 475863002: VideoRendererImpl: Delay report of BUFFERING_HAVE_NOTHING. (Closed)

Created:
6 years, 4 months ago by acolwell GONE FROM CHROMIUM
Modified:
6 years, 4 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

VideoRendererImpl: Delay report of BUFFERING_HAVE_NOTHING. Currently VideoRendererImpl triggers the pipeline to underflow immediately after it runs out of frame. This is not desired because relatively small video decoding glitch would cause audio to stutter as well, which is more noticeable than some dropped video frames. With this CL, VRI only declares BUFFERING_HAVE_NOTHING after it has run out of buffers and have not painted any frame for certain amount of time (e.g. 3s in media time). In other words, video can still trigger pipeline underflow but won't do this until really necessary. BUG=144683 TEST=Tested by making video decoder slower. See https://codereview.chromium.org/464113003/ Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289786

Patch Set 1 : Original CL (https://codereview.chromium.org/470773002/) #

Patch Set 2 : Address CR comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -6 lines) Patch
M media/filters/video_renderer_impl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M media/filters/video_renderer_impl.cc View 1 7 chunks +12 lines, -2 lines 1 comment Download
M media/filters/video_renderer_impl_unittest.cc View 1 2 chunks +9 lines, -4 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
acolwell GONE FROM CHROMIUM
6 years, 4 months ago (2014-08-14 19:34:10 UTC) #1
DaleCurtis
lgtm % up to you nit. https://codereview.chromium.org/475863002/diff/20001/media/filters/video_renderer_impl_unittest.cc File media/filters/video_renderer_impl_unittest.cc (right): https://codereview.chromium.org/475863002/diff/20001/media/filters/video_renderer_impl_unittest.cc#newcode544 media/filters/video_renderer_impl_unittest.cc:544: AdvanceTimeInMs(3000); // Must ...
6 years, 4 months ago (2014-08-14 19:47:27 UTC) #2
acolwell GONE FROM CHROMIUM
The CQ bit was checked by acolwell@chromium.org
6 years, 4 months ago (2014-08-14 19:49:27 UTC) #3
acolwell GONE FROM CHROMIUM
Thanks for the review. https://codereview.chromium.org/475863002/diff/20001/media/filters/video_renderer_impl_unittest.cc File media/filters/video_renderer_impl_unittest.cc (right): https://codereview.chromium.org/475863002/diff/20001/media/filters/video_renderer_impl_unittest.cc#newcode544 media/filters/video_renderer_impl_unittest.cc:544: AdvanceTimeInMs(3000); // Must match kTimeToDeclareHaveNothing. ...
6 years, 4 months ago (2014-08-14 19:51:22 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acolwell@chromium.org/475863002/20001
6 years, 4 months ago (2014-08-14 19:52:44 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-15 03:45:24 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (20001) as 289786
6 years, 4 months ago (2014-08-15 04:43:58 UTC) #7
scherkus (not reviewing)
6 years, 4 months ago (2014-08-22 01:41:00 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/475863002/diff/20001/media/filters/video_rend...
File media/filters/video_renderer_impl.cc (right):

https://codereview.chromium.org/475863002/diff/20001/media/filters/video_rend...
media/filters/video_renderer_impl.cc:206: base::TimeDelta now =
get_time_cb_.Run();
did we mean to use *media* time instead of wall clock time?

if so ... I think we've made it impossible for that condition to evaluate to
true in the video-only case since media time is controlled via running
max_time_cb_ inside this class.

we might need to have a quick pow-wow with everyone in the office on Friday --
my brain is hurting thinking about these edge cases.

Powered by Google App Engine
This is Rietveld 408576698