APM in Audio Service: Don't stop monitoring streams erroneously
When an input stream is being processed in the audio service, its InputController monitors an output stream (actually, its OutputController) to get the audio it needs to perform echo cancellation. When the output stream is replaced, the input controller should stop monitoring the old output stream and start monitoring the new one. If the creation and destruction of these streams are interleaved, this would break, as the input controller would start monitoring the new stream, then stop monitoring any stream as the old output stream was destroyed. This CL ensures the input controller only stops monitoring if the destroyed stream is the one it's currently monitoring. Bug: 883651 Change-Id: I5731840d8af11ecd76ecd1a25126034c5ff496ac Reviewed-on: https://chromium-review.googlesource.com/1245711 Commit-Queue: Oskar Sundbom <ossu@chromium.org> Reviewed-by:Max Morin <maxmorin@chromium.org> Cr-Commit-Position: refs/heads/master@{#594704}
Showing
Please register or sign in to comment