Replace pa_threaded_mainloop_wait() with a base::WaitableEvent.
This replaces the indefinite blocking during pulse::InitPulse() with a timed wait of 5 seconds. We will now fall back to ALSA if we fail to connect to pulse within that time. I suspect this has the same root cause as issue 986021, but the fix for those hangs disabled the audio process, which makes the browser process now hang on startup. R=jrummell Bug: 986021, 1047655 Test: Local tests with manual shutdown of Pulse fall back to ALSA. Change-Id: I337ef88bd953f56ef0bd9969a42f190200520a79 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2037817 Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Reviewed-by:John Rummell <jrummell@chromium.org> Cr-Commit-Position: refs/heads/master@{#738383}
Showing
Please register or sign in to comment