Fix Crash Report - media::VideoCaptureDeviceMFWin::OnError
Updated MFVideoCallback to have a shutdown method to invalidate the pointer to the observer_. Shutdown is needed because MFVideoCallback is a refcounted class and can live longer than the raw pointer to observer_. Added test to validate the crash before the fix and that the code update fixes the issue. Bug: 1099934 Change-Id: I1a80914f720638a4fda2d2155b547ec12bafd08a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2275493Reviewed-by:Guido Urdaneta <guidou@chromium.org> Reviewed-by:
Bruce Dawson <brucedawson@chromium.org> Commit-Queue: Christian Larson <chrila@microsoft.com> Cr-Commit-Position: refs/heads/master@{#784506}
Showing
Please register or sign in to comment