Fix deadlock in processing audio
The fix for issue 1125635 and 1115901 causes a deadlock because pulling on the audio graph that has a ScriptProcessorNode calls the main thread to do the processing. If the context goes away, the destructor needs tries to get the lock which is being held by the audio thread, waiting for the ScriptProcessorNode to return so the lock can be released. Hence a deadlock. We revert this fix. Local tests indicate that the repro case from 1125635 no longer triggers for whatever reason when it was very reliable before. While the deadlock is gone, this is also a speculative revert for 1125635 and 1115901. Bug: 1136571, 1125635, 1115901 Change-Id: I7de5cd8e764272a7a320c4b89d2c187663f0ff5f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2514806Reviewed-by:Hongchan Choi <hongchan@chromium.org> Commit-Queue: Raymond Toy <rtoy@chromium.org> Cr-Commit-Position: refs/heads/master@{#823418}
Showing
Please register or sign in to comment