Fix data race in MediaStreamAudioSourceHandler
Fixes a potential data race of |source_number_of_channels_|. In the worst scenario, the rendering may fail with a crash when the output channel count does not match. - SetFormat() is peeking/writing the value. (mostly from main thread) - Process() is reading the value. (rendering thread) Bug: 1108477 Change-Id: I4b64eab94b66e1998a456915d4eaa391791dc44f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2316404 Commit-Queue: Hongchan Choi <hongchan@chromium.org> Reviewed-by:Raymond Toy <rtoy@chromium.org> Cr-Commit-Position: refs/heads/master@{#792035}
Showing
Please register or sign in to comment