Add wait logic to Init() on MF_CAPTURE_ENGINE_INITIALIZED event.
Before completing the VideoCaptureDeviceMFWin::Init() function we should wait on MF_CAPTURE_ENGINE_INITIALIZED. The Capture Source is not fully constructed until the MF_CAPTURE_ENGINE_INITIALIZED event fires and calling methods before this time can cause unstable behavior. Bug: 1076730 Change-Id: I239077a4d9a599643b9e2c4ed0e26219a2dbb58f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2238879Reviewed-by:Bruce Dawson <brucedawson@chromium.org> Reviewed-by:
Guido Urdaneta <guidou@chromium.org> Commit-Queue: Christian Larson <chrila@microsoft.com> Cr-Commit-Position: refs/heads/master@{#780498}
Showing
Please register or sign in to comment