Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check context status before recreating platform destination
Changing the channel count in the RealtimeAudioDestinationHandler will trigger the recreation of the platform destination. This in turn can activate the audio rendering thread. This CL adds a check to prevent this from happening after the handler is garbage collected. (cherry picked from commit 4997f2b) Bug: 1497859 Test: Locally confirmed with ASAN Change-Id: I5d2649f3fd3639779ae40b0ca4ef2fe305653421 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4995928 Commit-Queue: Hongchan Choi <hongchan@chromium.org> Reviewed-by: Michael Wilson <mjwilson@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1217868} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5004961 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5993@{#1520} Cr-Branched-From: 5113507-refs/heads/main@{#1192594}
- Loading branch information