[pulse] Add error checking while waiting for pa_operations.
The pulseaudio source code checks pa_context and pa_stream state while waiting for operation completion. Lets do the same thing on the off chance that's the source of our hangs. See CHECK_DEAD_GOTO macro upstream: https://github.com/pulseaudio/pulseaudio/blob/master/src/pulse/simple.c#L68 This change modifies the WaitForOperationCompletion() method to take an optional pa_stream and/or pa_context and checks their state while waiting. In cases where failure could be signaled as an error upstream, a bool status code is used to do so. BUG=986021 R=tguilbert Change-Id: I7075293d1f74ad12f6c596bce39bbf0bba2c9a73 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1811698 Auto-Submit: Dale Curtis <dalecurtis@chromium.org> Reviewed-by:Thomas Guilbert <tguilbert@chromium.org> Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#697806}
Showing
Please register or sign in to comment