Fix AAudio crash on device change
Currently, when using AAudio, we treat device changes like any other error, which causes video playback to fail when plugging in headphones. This CL changes this so we intercept device disconnection errors, and report them as kDeviceChange errors to the OutputController, which forces the graceful creation of a new stream. Bug: 1136559 Change-Id: I7969ad3edac2b7bbc9a3e2271f423cf7a029e7f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2462340 Commit-Queue: Thomas Guilbert <tguilbert@chromium.org> Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Auto-Submit: Thomas Guilbert <tguilbert@chromium.org> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#815438}
Showing
Please register or sign in to comment