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

Issue 1542103002: Handle invalid hardware output parameters in AudioRendererHost. (Closed)

Created:
5 years ago by Guido Urdaneta
Modified:
4 years, 11 months ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle invalid hardware output parameters in AudioRendererHost. It may happen that the audio parameters returned by a hardware device are invalid for Chromium. If the invalidity is caused only by having too many output channels, return the maximum allowed channels to make sure there are no serialization problems. This does not matter in practice, as streams are created using the input channels. BUG=568860 Committed: https://crrev.com/2d0a4f0bf564bbef1b001004a0d54b9845bc21ad Cr-Commit-Position: refs/heads/master@{#368316}

Patch Set 1 #

Patch Set 2 : return fake audio path and status OK on invalid hardware parameters #

Patch Set 3 : Handle AUDIO_FAKE in ARI and ARMM #

Total comments: 2

Patch Set 4 : Remove unnecesary conditions from test #

Patch Set 5 : Minor style change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -8 lines) Patch
M content/browser/renderer_host/media/audio_renderer_host.cc View 1 2 3 4 4 chunks +22 lines, -4 lines 0 comments Download
M content/renderer/media/audio_renderer_mixer_manager.cc View 1 2 1 chunk +11 lines, -3 lines 0 comments Download
M media/renderers/audio_renderer_impl.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 35 (14 generated)
Guido Urdaneta
Hi, PTAL
5 years ago (2015-12-22 15:36:18 UTC) #3
xhwang
xhwang -> dalecurtis, who is more familiar with audio stuff...
4 years, 11 months ago (2016-01-04 21:05:57 UTC) #5
DaleCurtis
Won't this cause playback to break when bad audio hardware is present? I.e. we'll shutdown ...
4 years, 11 months ago (2016-01-05 21:23:44 UTC) #6
Guido Urdaneta
On 2016/01/05 21:23:44, DaleCurtis wrote: > Won't this cause playback to break when bad audio ...
4 years, 11 months ago (2016-01-06 09:34:48 UTC) #7
Guido Urdaneta
This update returns status OK with dummy (but valid) params and fake audio path in ...
4 years, 11 months ago (2016-01-06 11:02:41 UTC) #8
DaleCurtis
Hmm, I'm still not sure this does what we want, since this code path will ...
4 years, 11 months ago (2016-01-06 21:12:47 UTC) #9
Guido Urdaneta
On 2016/01/06 21:12:47, DaleCurtis wrote: > Hmm, I'm still not sure this does what we ...
4 years, 11 months ago (2016-01-06 23:28:31 UTC) #10
DaleCurtis
No, I don't think that's intentional and I'm not sure why it would be the ...
4 years, 11 months ago (2016-01-06 23:31:17 UTC) #11
DaleCurtis
I'm torn on the AUDIO_FAKE idea too. Invalid parameters fail fast, while accidentally using fake ...
4 years, 11 months ago (2016-01-06 23:33:58 UTC) #12
Guido Urdaneta
On 2016/01/06 23:33:58, DaleCurtis wrote: > I'm torn on the AUDIO_FAKE idea too. Invalid parameters ...
4 years, 11 months ago (2016-01-07 00:37:51 UTC) #13
DaleCurtis
I guess the fake is as good as we can do without adding another type. ...
4 years, 11 months ago (2016-01-07 01:23:37 UTC) #14
Guido Urdaneta
On 2016/01/07 01:23:37, DaleCurtis wrote: > I guess the fake is as good as we ...
4 years, 11 months ago (2016-01-07 11:01:48 UTC) #18
Guido Urdaneta
The latest update includes handling of hardware params with AUDIO_FAKE in ARMM and ARI. However, ...
4 years, 11 months ago (2016-01-07 13:21:55 UTC) #19
DaleCurtis
lgtm https://codereview.chromium.org/1542103002/diff/40001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/1542103002/diff/40001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode142 content/browser/renderer_host/media/audio_renderer_host.cc:142: if (!params->IsValid() && Seems these first two conditions ...
4 years, 11 months ago (2016-01-07 19:14:51 UTC) #21
DaleCurtis
On 2016/01/07 13:21:55, Guido Urdaneta wrote: > The latest update includes handling of hardware params ...
4 years, 11 months ago (2016-01-07 19:16:01 UTC) #22
Guido Urdaneta
On 2016/01/07 19:16:01, DaleCurtis wrote: > On 2016/01/07 13:21:55, Guido Urdaneta wrote: > > The ...
4 years, 11 months ago (2016-01-08 11:20:21 UTC) #23
Guido Urdaneta
https://codereview.chromium.org/1542103002/diff/40001/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/1542103002/diff/40001/content/browser/renderer_host/media/audio_renderer_host.cc#newcode142 content/browser/renderer_host/media/audio_renderer_host.cc:142: if (!params->IsValid() && On 2016/01/07 19:14:51, DaleCurtis wrote: > ...
4 years, 11 months ago (2016-01-08 11:20:34 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1542103002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1542103002/60001
4 years, 11 months ago (2016-01-08 11:21:01 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1542103002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1542103002/80001
4 years, 11 months ago (2016-01-08 11:24:10 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago (2016-01-08 12:30:59 UTC) #33
commit-bot: I haz the power
4 years, 11 months ago (2016-01-08 12:32:04 UTC) #35
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2d0a4f0bf564bbef1b001004a0d54b9845bc21ad
Cr-Commit-Position: refs/heads/master@{#368316}

Powered by Google App Engine
This is Rietveld 408576698