Copy sinks before ReadyState change notification
MediaStreamVideoSinks may disconnect from a MediaStreamVideoTrack in response to a OnReadyStateChanged() nofitication. This can lead to an invalid iterator if the sinks disconnect synchronously. This CL fixes the issue by iterating over a copy of sinks instead. Bug: 1143213 Change-Id: I71fc43696d6b239f0bc4668b85474dc713e674b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2505552 Auto-Submit: Thomas Guilbert <tguilbert@chromium.org> Commit-Queue: Guido Urdaneta <guidou@chromium.org> Reviewed-by:Guido Urdaneta <guidou@chromium.org> Cr-Commit-Position: refs/heads/master@{#822022}
Showing
Please register or sign in to comment