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

Issue 140823012: Reland: Add Stop() to AudioDecoder. (https://codereview.chromium.org/126793002/) (Closed)

Created:
6 years, 11 months ago by rileya (GONE FROM CHROMIUM)
Modified:
6 years, 11 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Patch Set 1 : Final patchset from original CL. #

Patch Set 2 : Add unit test that reproduces what I suspect to be the cause of the RunDecodeLoop crash. #

Patch Set 3 : Fix layout test failure #

Patch Set 4 : Fix crash. #

Total comments: 4

Patch Set 5 : cleanup #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 1

Patch Set 8 : add kInitializing state to ARI #

Total comments: 9

Patch Set 9 : #

Total comments: 1

Patch Set 10 : Tweak unit test. #

Total comments: 4

Patch Set 11 : #

Total comments: 2

Patch Set 12 : remove extra scope #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -84 lines) Patch
M media/base/audio_decoder.h View 2 chunks +10 lines, -3 lines 0 comments Download
M media/base/mock_filters.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/audio_decoder_selector.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M media/filters/audio_decoder_selector_unittest.cc View 5 chunks +19 lines, -2 lines 0 comments Download
M media/filters/audio_renderer_impl.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M media/filters/audio_renderer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +66 lines, -37 lines 0 comments Download
M media/filters/audio_renderer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 11 chunks +96 lines, -7 lines 0 comments Download
M media/filters/decrypting_audio_decoder.h View 3 chunks +3 lines, -0 lines 0 comments Download
M media/filters/decrypting_audio_decoder.cc View 7 chunks +38 lines, -3 lines 0 comments Download
M media/filters/decrypting_audio_decoder_unittest.cc View 3 chunks +26 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.h View 3 chunks +6 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.cc View 4 chunks +68 lines, -9 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder_unittest.cc View 10 chunks +119 lines, -13 lines 0 comments Download
M media/filters/opus_audio_decoder.h View 2 chunks +6 lines, -1 line 0 comments Download
M media/filters/opus_audio_decoder.cc View 3 chunks +56 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
rileya (GONE FROM CHROMIUM)
This is currently the exact patch as before in a new CL. So there were/are ...
6 years, 11 months ago (2014-01-17 18:50:19 UTC) #1
xhwang
On 2014/01/17 18:50:19, rileya wrote: > This is currently the exact patch as before in ...
6 years, 11 months ago (2014-01-17 20:14:08 UTC) #2
DaleCurtis
It'd make this easier to review if you uploaded the original change as patch set ...
6 years, 11 months ago (2014-01-17 20:32:26 UTC) #3
DaleCurtis
Oh, I see that it sounds like you're already planning to do that. The current ...
6 years, 11 months ago (2014-01-17 20:33:21 UTC) #4
rileya (GONE FROM CHROMIUM)
> For the video part, when this happens, VideoFrameStream (VFS) calls > VideoDecoderSelector::Abort(), which will ...
6 years, 11 months ago (2014-01-17 23:09:05 UTC) #5
rileya (GONE FROM CHROMIUM)
See the new patchset to audio_renderer_impl_unittest.cc for a quick and hacky repro case of what ...
6 years, 11 months ago (2014-01-18 00:39:41 UTC) #6
rileya (GONE FROM CHROMIUM)
Okay, fixes for both the canary crash (plus a unit test) and the layout test ...
6 years, 11 months ago (2014-01-21 19:08:50 UTC) #7
DaleCurtis
https://codereview.chromium.org/140823012/diff/140001/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/140823012/diff/140001/media/filters/audio_renderer_impl.cc#newcode215 media/filters/audio_renderer_impl.cc:215: base::ResetAndReturn(&init_cb_).Run(PIPELINE_ERROR_ABORT); On 2014/01/21 19:08:50, rileya wrote: > Is there ...
6 years, 11 months ago (2014-01-21 21:14:39 UTC) #8
rileya (GONE FROM CHROMIUM)
On 2014/01/21 21:14:39, DaleCurtis wrote: > https://codereview.chromium.org/140823012/diff/140001/media/filters/audio_renderer_impl.cc > File media/filters/audio_renderer_impl.cc (right): > > https://codereview.chromium.org/140823012/diff/140001/media/filters/audio_renderer_impl.cc#newcode215 > ...
6 years, 11 months ago (2014-01-21 21:17:13 UTC) #9
rileya (GONE FROM CHROMIUM)
Ahh, looks like ARI::OnDecoderSelected had a check for state == kStopped that early-out-ed which resulted ...
6 years, 11 months ago (2014-01-21 22:12:15 UTC) #10
DaleCurtis
https://codereview.chromium.org/140823012/diff/330001/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/140823012/diff/330001/media/filters/audio_renderer_impl.cc#newcode198 media/filters/audio_renderer_impl.cc:198: if (state_ == kUninitialized) { If uninitialized there shouldn't ...
6 years, 11 months ago (2014-01-21 22:20:26 UTC) #11
rileya (GONE FROM CHROMIUM)
On 2014/01/21 22:20:26, DaleCurtis wrote: > https://codereview.chromium.org/140823012/diff/330001/media/filters/audio_renderer_impl.cc > File media/filters/audio_renderer_impl.cc (right): > > https://codereview.chromium.org/140823012/diff/330001/media/filters/audio_renderer_impl.cc#newcode198 > ...
6 years, 11 months ago (2014-01-22 00:01:41 UTC) #12
DaleCurtis
https://codereview.chromium.org/140823012/diff/270002/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/140823012/diff/270002/media/filters/audio_renderer_impl.cc#newcode200 media/filters/audio_renderer_impl.cc:200: callback.Run(); Instead of running this here, I believe you ...
6 years, 11 months ago (2014-01-22 00:27:46 UTC) #13
xhwang
https://codereview.chromium.org/140823012/diff/270002/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/140823012/diff/270002/media/filters/audio_renderer_impl.cc#newcode200 media/filters/audio_renderer_impl.cc:200: callback.Run(); Agree with Dale on this. Also, usually we ...
6 years, 11 months ago (2014-01-22 03:53:53 UTC) #14
rileya (GONE FROM CHROMIUM)
https://codereview.chromium.org/140823012/diff/270002/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/140823012/diff/270002/media/filters/audio_renderer_impl.cc#newcode200 media/filters/audio_renderer_impl.cc:200: callback.Run(); On 2014/01/22 03:53:54, xhwang wrote: > Agree with ...
6 years, 11 months ago (2014-01-22 17:35:27 UTC) #15
DaleCurtis
https://codereview.chromium.org/140823012/diff/270002/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/140823012/diff/270002/media/filters/audio_renderer_impl.cc#newcode200 media/filters/audio_renderer_impl.cc:200: callback.Run(); On 2014/01/22 17:35:28, rileya wrote: > On 2014/01/22 ...
6 years, 11 months ago (2014-01-22 18:43:25 UTC) #16
rileya (GONE FROM CHROMIUM)
https://codereview.chromium.org/140823012/diff/470002/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/140823012/diff/470002/media/filters/audio_renderer_impl.cc#newcode203 media/filters/audio_renderer_impl.cc:203: if (state_ == kStopped) On 2014/01/22 18:43:26, DaleCurtis wrote: ...
6 years, 11 months ago (2014-01-22 18:58:51 UTC) #17
DaleCurtis
lgtm % {} removal. https://codereview.chromium.org/140823012/diff/590001/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/140823012/diff/590001/media/filters/audio_renderer_impl.cc#newcode304 media/filters/audio_renderer_impl.cc:304: { No need to scope ...
6 years, 11 months ago (2014-01-22 19:06:17 UTC) #18
rileya (GONE FROM CHROMIUM)
https://codereview.chromium.org/140823012/diff/590001/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/140823012/diff/590001/media/filters/audio_renderer_impl.cc#newcode304 media/filters/audio_renderer_impl.cc:304: { On 2014/01/22 19:06:17, DaleCurtis wrote: > No need ...
6 years, 11 months ago (2014-01-22 19:18:59 UTC) #19
rileya (GONE FROM CHROMIUM)
Anyone have any final thoughts on this?
6 years, 11 months ago (2014-01-22 22:01:01 UTC) #20
xhwang
lgtm, thanks!
6 years, 11 months ago (2014-01-23 00:03:42 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rileya@chromium.org/140823012/500002
6 years, 11 months ago (2014-01-23 00:10:40 UTC) #22
commit-bot: I haz the power
6 years, 11 months ago (2014-01-23 04:48:56 UTC) #23
Message was sent while issue was closed.
Change committed as 246529

Powered by Google App Engine
This is Rietveld 408576698