commit | 4519c32f528e079f25cb2afc594ecf625f943782 | [log] [tgz] |
---|---|---|
author | Oskar Sundbom <ossu@chromium.org> | Tue May 29 10:33:47 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue May 29 10:33:47 2018 |
tree | 42e217f561c1b2c666580c0f79576c267f8a2014 | |
parent | a0bcd85d067b98f7c0febbf58b69ecdcdfdacde8 [diff] |
PulseAudio: Filter out unavailable inputs and refuse to open monitor inputs If there are no available inputs, PulseAudio will, for some reason, select the monitor of the current default sink as the default source. Chrome will only add a Default input to the device enumeration if there is at least one valid input found. Currently, we also include unavailable inputs in the device enumeration, which means Chrome will show a Default device, which in that case would likely be a monitor device, rather than a proper input. This CL stops this happening by not enumerating inputs that don't have an available, active port. In case PulseAudio would _still_ pick a monitor device as the default device, this CL also explicitly returns invalid AudioParameters for monitor devices, and explicitly fails to open them as inputs - to be on the safe side. Bug: b/79580580 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: I25bd96e98a48bcdf6e993759e97bf713855d4ad0 Reviewed-on: https://chromium-review.googlesource.com/1064373 Commit-Queue: Oskar Sundbom <ossu@chromium.org> Reviewed-by: Max Morin <maxmorin@chromium.org> Cr-Commit-Position: refs/heads/master@{#562383}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .