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

Issue 2110853006: Fix MultibufferDataSource::GetSize (Closed)

Created:
4 years, 5 months ago by kostya-k
Modified:
4 years, 5 months ago
Reviewers:
hubbe, DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix MultibufferDataSource::GetSize When file loading is finished ResourceMultiBufferDataProvider count DataBuffer queue size twice, so GetSize returned incorrect value. BUG= Committed: https://crrev.com/bbaba3c8053a39f6d11d78a6e4770b37a9639067 Cr-Commit-Position: refs/heads/master@{#403123}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -2 lines) Patch
M media/blink/multibuffer_data_source_unittest.cc View 2 chunks +23 lines, -0 lines 0 comments Download
M media/blink/resource_multibuffer_data_provider.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
kostya-k
4 years, 5 months ago (2016-06-30 05:38:01 UTC) #3
hubbe
LGTM Is there a BUG= for this?
4 years, 5 months ago (2016-06-30 06:23:26 UTC) #4
kostya-k
On 2016/06/30 06:23:26, hubbe wrote: > LGTM > > Is there a BUG= for this? ...
4 years, 5 months ago (2016-06-30 07:08:04 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/2110853006/1
4 years, 5 months ago (2016-06-30 07:08:29 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-06-30 08:51:39 UTC) #9
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 08:51:46 UTC) #10
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/bbaba3c8053a39f6d11d78a6e4770b37a9639067 Cr-Commit-Position: refs/heads/master@{#403123}
4 years, 5 months ago (2016-06-30 08:53:35 UTC) #12
hubbe
On 2016/06/30 08:53:35, commit-bot: I haz the power wrote: > Patchset 1 (id:??) landed as ...
4 years, 5 months ago (2016-06-30 17:22:33 UTC) #13
hubbe
On 2016/06/30 07:08:04, kostya-k wrote: > On 2016/06/30 06:23:26, hubbe wrote: > > LGTM > ...
4 years, 5 months ago (2016-06-30 17:22:50 UTC) #14
Geoff Lang
On 2016/06/30 17:22:50, hubbe wrote: > On 2016/06/30 07:08:04, kostya-k wrote: > > On 2016/06/30 ...
4 years, 5 months ago (2016-06-30 17:37:42 UTC) #15
Geoff Lang
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2115483003/ by geofflang@chromium.org. ...
4 years, 5 months ago (2016-06-30 17:40:23 UTC) #16
DaleCurtis
When relanding this (if you do), please create a bug so we can get this ...
4 years, 5 months ago (2016-06-30 18:01:37 UTC) #18
kostya-k
On 2016/06/30 17:22:50, hubbe wrote: > On 2016/06/30 07:08:04, kostya-k wrote: > > On 2016/06/30 ...
4 years, 5 months ago (2016-07-01 03:18:57 UTC) #19
hubbe
On 2016/07/01 03:18:57, kostya-k wrote: > On 2016/06/30 17:22:50, hubbe wrote: > > On 2016/06/30 ...
4 years, 5 months ago (2016-07-01 17:12:24 UTC) #20
kostya-k
4 years, 5 months ago (2016-07-04 03:27:19 UTC) #21
Message was sent while issue was closed.
On 2016/07/01 17:12:24, hubbe wrote:
> On 2016/07/01 03:18:57, kostya-k wrote:
> > On 2016/06/30 17:22:50, hubbe wrote:
> > > On 2016/06/30 07:08:04, kostya-k wrote:
> > > > On 2016/06/30 06:23:26, hubbe wrote:
> > > > > LGTM
> > > > > 
> > > > > Is there a BUG= for this?
> > > > 
> > > > I didn't find any.
> > > 
> > > So what side effects does this bug have? How did you discover it?
> > 
> > Well, we have a peculiar media pipeline in Yandex browser that uses kind of
a
> > proxy DataSource which takes another DataSource and tries to fetch all
> requested
> > data from it. For example when we try to play bear_silent.mp4 (which is
exacly
> > 30451 bytes long) DataSource::GetSize returns 32k because of this bug. Then
> > client asks to read 32k of data and proxy DataSource at first receives 30451
> > bytes and it tries to fetch remaining data, but it fails due to there are no
> > more data.
> > I haven't really thought that it will cause test flakyness because it's a
bug
> > for sure. As you can see fifo_.back() size is already counted in byte_pos()
> >
>
https://cs.chromium.org/chromium/src/media/blink/resource_multibuffer_data_pr...
> > And BufferedDataSource always returns correct size
> 
> I agree that it's a bug, but it looks like fixing it breaks something else
right
> now, which also needs to be fixed.
> However, it's important to file a bugreport to document the impact of a
> particular bug, as that will help us decide
> if the bug needs to be merged back to older branches, and also helps us triage
> similar failures.

Yup, here it is - https://bugs.chromium.org/p/chromium/issues/detail?id=625515

Powered by Google App Engine
This is Rietveld 408576698