Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash in PulseAudio when ChannelLayout is "DISCRETE"
When AudioParameters is created, the channel count defaults to zero when a given ChannelLayout is DISCRETE. This makes the build crash because of CHECK() failure. This CL fixes the crash and also contains the channel layout handling in PulseAudio for the DISCRETE case. Bug: 827668 Test: The repro case on the issue does not crash anymore. 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;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: I222422f76df746c9113ca6586be311790048c6e4 Reviewed-on: https://chromium-review.googlesource.com/988306 Reviewed-by: Dale Curtis <[email protected]> Commit-Queue: Hongchan Choi <[email protected]> Cr-Commit-Position: refs/heads/master@{#550866}
- Loading branch information