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

Issue 2376513002: Fix implicit configuration changes in MediaCodecAudioDecoder. (Closed)

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

Description

Fix implicit configuration changes in MediaCodecAudioDecoder. This allows channel and sample rate changes to pass through to the renderer where they should be handled by AudioRendererImpl. BUG=650735 TEST=new unittest Committed: https://crrev.com/5769876ade1eadde031ff44094a30f31196e7cf1 Cr-Commit-Position: refs/heads/master@{#421318}

Patch Set 1 #

Patch Set 2 : Fix bugs. #

Patch Set 3 : Further cleanup. #

Patch Set 4 : Fix bugs. #

Patch Set 5 : Cleanup code a bit. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -104 lines) Patch
M media/filters/android/media_codec_audio_decoder.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M media/filters/android/media_codec_audio_decoder.cc View 1 2 3 4 6 chunks +52 lines, -102 lines 5 comments Download
M media/filters/audio_decoder_unittest.cc View 1 2 3 4 1 chunk +10 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (6 generated)
DaleCurtis
Tima, do you remember the details around this code? Specifically why we didn't pass channel ...
4 years, 2 months ago (2016-09-26 20:12:52 UTC) #2
Tima Vaisburd
On 2016/09/26 20:12:52, DaleCurtis wrote: > Tima, do you remember the details around this code? ...
4 years, 2 months ago (2016-09-26 20:38:05 UTC) #3
DaleCurtis
On 2016/09/26 at 20:38:05, timav wrote: > On 2016/09/26 20:12:52, DaleCurtis wrote: > > Tima, ...
4 years, 2 months ago (2016-09-26 21:46:37 UTC) #4
Tima Vaisburd
lgtm https://codereview.chromium.org/2376513002/diff/80001/media/filters/android/media_codec_audio_decoder.cc File media/filters/android/media_codec_audio_decoder.cc (right): https://codereview.chromium.org/2376513002/diff/80001/media/filters/android/media_codec_audio_decoder.cc#newcode440 media/filters/android/media_codec_audio_decoder.cc:440: void MediaCodecAudioDecoder::ResetTimestampState() { nit: s/ResetTimestampState/GuessParamsFromConfig/ ?
4 years, 2 months ago (2016-09-27 00:14:57 UTC) #6
DaleCurtis
https://codereview.chromium.org/2376513002/diff/80001/media/filters/android/media_codec_audio_decoder.cc File media/filters/android/media_codec_audio_decoder.cc (right): https://codereview.chromium.org/2376513002/diff/80001/media/filters/android/media_codec_audio_decoder.cc#newcode440 media/filters/android/media_codec_audio_decoder.cc:440: void MediaCodecAudioDecoder::ResetTimestampState() { On 2016/09/27 at 00:14:57, Tima Vaisburd ...
4 years, 2 months ago (2016-09-27 18:13:21 UTC) #9
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/2376513002/80001
4 years, 2 months ago (2016-09-27 18:13:46 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-09-27 20:22:59 UTC) #11
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/5769876ade1eadde031ff44094a30f31196e7cf1 Cr-Commit-Position: refs/heads/master@{#421318}
4 years, 2 months ago (2016-09-27 20:27:15 UTC) #13
AndyWu
https://codereview.chromium.org/2376513002/diff/80001/media/filters/android/media_codec_audio_decoder.cc File media/filters/android/media_codec_audio_decoder.cc (right): https://codereview.chromium.org/2376513002/diff/80001/media/filters/android/media_codec_audio_decoder.cc#newcode96 media/filters/android/media_codec_audio_decoder.cc:96: ResetTimestampState(); We should move this line before line 83. ...
4 years, 2 months ago (2016-09-28 18:28:48 UTC) #15
AndyWu
4 years, 2 months ago (2016-09-28 19:15:59 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/2376513002/diff/80001/media/filters/android/m...
File media/filters/android/media_codec_audio_decoder.cc (right):

https://codereview.chromium.org/2376513002/diff/80001/media/filters/android/m...
media/filters/android/media_codec_audio_decoder.cc:96: ResetTimestampState();
Sorry, this is not the root cause, just a workaround. The root cause is in line
414.

On 2016/09/28 18:28:48, AndyWu wrote:
> We should move this line before line 83. Sorry I didn't catch this issue
sooner.
> When I resume playback from middle of a episode on Hulu, The CL works fine.
> However, if I play a new episode from beginning, it fails. I think the
function
> returns in line 88, so |channel_count_| is kept 0.

https://codereview.chromium.org/2376513002/diff/80001/media/filters/android/m...
media/filters/android/media_codec_audio_decoder.cc:414:
timestamp_helper_->base_timestamp() == kNoTimestamp
We should check |timestamp_helper_| is null or not.

Powered by Google App Engine
This is Rietveld 408576698