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

Issue 710693003: Report PIPELINE_ERROR_DECODE when SourceState::Append fails. (Closed)

Created:
6 years, 1 month ago by jiajia.qin
Modified:
5 years, 11 months ago
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

Report PIPELINE_ERROR_DECODE when SourceState::Append fails. In old implementaion, when SourceState::Append failed, it will report DEMUXER_ERROR_COULD_NOT_OPEN error in ChunkDemuxer::AppendData case INITIALIZING. But in fact, appended data may include initialization segment and media segment both. The error can happen in any point. In MSE spec ( http://w3c.github.io/media-source/#byte-stream-formats ) The user agent must run the end of stream algorithm with the error parameter set to "decode" when in some conditions. They all happen in parsing the appended data. So, here when SourceState::Append fails, it should report PIPELINE_ERROR_DECODE. Another side, when the segment parser loop successfully parses a complete initialization segment, it should call ReportMetadata immediately. Otherwise, when meeting PIPELINE_ERROR_DECODE but WebMediaPlayer's ready_state_ is still ReadyStateHaveNothing, it will be treated as NetworkStateFormatError not NetworkStateDecodeError. This Cl will resolve above two problems. BUG=None TEST=LayoutTest: https://codereview.chromium.org/742653002 Committed: https://crrev.com/5025fd8f7f15225b454ad37bdec8e696db4330f3 Cr-Commit-Position: refs/heads/master@{#313358}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Don't use renderer_ in ReportMetadata #

Total comments: 1

Patch Set 3 : in case kInitRenderer to report metadata #

Patch Set 4 : revert to patch set 2 #

Patch Set 5 : revert to patch set 2 #

Patch Set 6 : rebase #

Total comments: 1

Patch Set 7 : rebase and tiny modification #

Patch Set 8 : modify corresponding unit test #

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

Messages

Total messages: 54 (8 generated)
jiajia.qin
PTAL.
6 years, 1 month ago (2014-11-12 10:55:30 UTC) #1
jiajia.qin
Hi, wolenetz. Any feedback? Thanks.
6 years, 1 month ago (2014-11-17 05:31:14 UTC) #2
jiajia.qin
Add more reviewers. Please take a look. Thanks.
6 years, 1 month ago (2014-11-18 07:55:30 UTC) #4
philipj_slow
Note that I'm not an owner in Chromium, but that's OK. Can you include a ...
6 years, 1 month ago (2014-11-18 09:24:23 UTC) #5
xhwang
I'll defer to wolenetz@ to review this one.
6 years, 1 month ago (2014-11-18 17:19:52 UTC) #7
DaleCurtis
https://codereview.chromium.org/710693003/diff/1/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/710693003/diff/1/media/base/pipeline.cc#newcode303 media/base/pipeline.cc:303: if (state_ == kInitDemuxer && status == PIPELINE_OK) { ...
6 years, 1 month ago (2014-11-19 00:20:29 UTC) #8
jiajia.qin
On 2014/11/18 09:24:23, philipj wrote: > Note that I'm not an owner in Chromium, but ...
6 years, 1 month ago (2014-11-19 06:30:07 UTC) #9
jiajia.qin
On 2014/11/19 00:20:29, DaleCurtis wrote: > https://codereview.chromium.org/710693003/diff/1/media/base/pipeline.cc > File media/base/pipeline.cc (right): > > https://codereview.chromium.org/710693003/diff/1/media/base/pipeline.cc#newcode303 > ...
6 years, 1 month ago (2014-11-19 06:42:44 UTC) #10
philipj_slow
On 2014/11/19 06:30:07, jiajia.qin wrote: > On 2014/11/18 09:24:23, philipj wrote: > > Note that ...
6 years, 1 month ago (2014-11-19 10:20:58 UTC) #11
jiajia.qin
On 2014/11/19 10:20:58, philipj wrote: > On 2014/11/19 06:30:07, jiajia.qin wrote: > > On 2014/11/18 ...
6 years, 1 month ago (2014-11-20 06:49:19 UTC) #12
philipj_slow
On 2014/11/20 06:49:19, jiajia.qin wrote: > On 2014/11/19 10:20:58, philipj wrote: > > On 2014/11/19 ...
6 years, 1 month ago (2014-11-20 09:11:17 UTC) #13
philipj_slow
Also, the MSE spec has moved, new link should be http://w3c.github.io/media-source/#byte-stream-formats
6 years, 1 month ago (2014-11-20 09:11:45 UTC) #14
jiajia.qin
On 2014/11/20 09:11:17, philipj wrote: > On 2014/11/20 06:49:19, jiajia.qin wrote: > > On 2014/11/19 ...
6 years, 1 month ago (2014-11-20 10:57:17 UTC) #15
philipj_slow
On 2014/11/20 10:57:17, jiajia.qin wrote: > On 2014/11/20 09:11:17, philipj wrote: > > The question ...
6 years, 1 month ago (2014-11-20 12:50:06 UTC) #16
DaleCurtis
https://codereview.chromium.org/710693003/diff/20001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/710693003/diff/20001/media/base/pipeline.cc#newcode299 media/base/pipeline.cc:299: // When demuxer has finished the init segment, it ...
6 years, 1 month ago (2014-11-20 18:59:51 UTC) #17
jiajia.qin
On 2014/11/20 18:59:51, DaleCurtis wrote: > https://codereview.chromium.org/710693003/diff/20001/media/base/pipeline.cc > File media/base/pipeline.cc (right): > > https://codereview.chromium.org/710693003/diff/20001/media/base/pipeline.cc#newcode299 > ...
6 years, 1 month ago (2014-11-21 01:59:47 UTC) #18
DaleCurtis
lgtm, but please let wolenetz@ give final approval.
6 years, 1 month ago (2014-11-21 18:55:54 UTC) #20
wolenetz
I'll take a look at this and a few others today. My apologies for delay, ...
6 years, 1 month ago (2014-11-21 19:00:49 UTC) #21
wolenetz
On 2014/11/21 19:00:49, wolenetz wrote: > I'll take a look at this and a few ...
6 years, 1 month ago (2014-11-22 00:07:53 UTC) #22
wolenetz
On 2014/11/22 00:07:53, wolenetz wrote: > On 2014/11/21 19:00:49, wolenetz wrote: > > I'll take ...
6 years ago (2014-11-26 23:35:49 UTC) #23
jiajia.qin
On 2014/11/26 23:35:49, wolenetz wrote: > On 2014/11/22 00:07:53, wolenetz wrote: > > On 2014/11/21 ...
6 years ago (2014-11-27 06:07:57 UTC) #24
jiajia.qin
Hi, wolenetz. Any comments?
6 years ago (2014-12-02 01:47:51 UTC) #25
jiajia.qin
Hi, wolenetz. Sorry to push you again. I just want to close this Cl as ...
6 years ago (2014-12-08 01:47:48 UTC) #26
wolenetz
On 2014/12/08 01:47:48, jiajia.qin wrote: > Hi, wolenetz. Sorry to push you again. I just ...
5 years, 11 months ago (2015-01-08 22:36:47 UTC) #27
DaleCurtis
Turns out this is also breaking preload=metadata! I don't think PS#5 is correct, PS#3 which ...
5 years, 11 months ago (2015-01-15 23:14:29 UTC) #28
jiajia.qin
On 2015/01/15 23:14:29, DaleCurtis wrote: > Turns out this is also breaking preload=metadata! I don't ...
5 years, 11 months ago (2015-01-16 06:11:21 UTC) #29
DaleCurtis
I think the real issue with this code is that ChunkDemuxer::Initialize() post-tasks the init_cb to ...
5 years, 11 months ago (2015-01-16 21:16:02 UTC) #30
DaleCurtis
I've put together https://codereview.chromium.org/827013005/ which should resolve that issue, but it needs some discussion.
5 years, 11 months ago (2015-01-16 22:16:11 UTC) #31
DaleCurtis
Hi, I've landed my CL, can you try moving the code back to PS#3 and ...
5 years, 11 months ago (2015-01-21 21:44:30 UTC) #32
jiajia.qin
On 2015/01/21 21:44:30, DaleCurtis wrote: > Hi, I've landed my CL, can you try moving ...
5 years, 11 months ago (2015-01-22 05:55:06 UTC) #33
DaleCurtis
Thanks, this should be ready to land then. lgtm
5 years, 11 months ago (2015-01-23 23:56:01 UTC) #34
wolenetz
This is looking good to me % nit, and: would it be possible to add ...
5 years, 11 months ago (2015-01-24 01:13:41 UTC) #35
jiajia.qin
On 2015/01/24 01:13:41, wolenetz wrote: > This is looking good to me % nit, and: ...
5 years, 11 months ago (2015-01-26 01:49:30 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/710693003/120001
5 years, 11 months ago (2015-01-26 01:50:18 UTC) #38
commit-bot: I haz the power
All required reviewers (with asterisk prefixes) have not yet approved this CL. No LGTM from ...
5 years, 11 months ago (2015-01-26 01:50:23 UTC) #40
wolenetz
On 2015/01/26 01:49:30, jiajia.qin wrote: > On 2015/01/24 01:13:41, wolenetz wrote: > > This is ...
5 years, 11 months ago (2015-01-26 21:10:51 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/710693003/120001
5 years, 11 months ago (2015-01-26 21:11:24 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/18381) Try jobs failed on following ...
5 years, 11 months ago (2015-01-26 22:14:29 UTC) #45
jiajia.qin
wolenetz, I modified the corresponding unit tests. Please review pipeline_unittest.cc and chunk_demuxer_unittest.cc. Sorry that I ...
5 years, 11 months ago (2015-01-27 09:02:01 UTC) #46
philipj_slow
Jiajia, I've nominated you for try bot access. If granted, you will be able to ...
5 years, 11 months ago (2015-01-27 09:39:09 UTC) #47
jiajia.qin
On 2015/01/27 09:39:09, philipj_UTC7 wrote: > Jiajia, I've nominated you for try bot access. If ...
5 years, 11 months ago (2015-01-27 09:51:51 UTC) #48
DaleCurtis
Still lgtm.
5 years, 11 months ago (2015-01-27 19:51:29 UTC) #49
wolenetz
I've +1'ed the request for your try bot access (not sure +1 is even necessary, ...
5 years, 11 months ago (2015-01-27 19:53:05 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/710693003/140001
5 years, 11 months ago (2015-01-27 20:29:18 UTC) #52
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 11 months ago (2015-01-27 21:23:50 UTC) #53
commit-bot: I haz the power
5 years, 11 months ago (2015-01-27 21:26:47 UTC) #54
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/5025fd8f7f15225b454ad37bdec8e696db4330f3
Cr-Commit-Position: refs/heads/master@{#313358}

Powered by Google App Engine
This is Rietveld 408576698