Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protect WMPI::ActivateSurfaceLayerForVideo From Multiple Invocations
If ActivateSurfaceLayerForVideo is invoked more than once it will cause a breakpoint crash when it attempts to run the OnceCallback `create_bridge_callback_` a second time. This change helps protect against this by moving the onus for checking whether `surface_layer_for_video_enabled_` is set from the callers of ActivateSurfaceLayerForVideo and instead adds a check directly in ActivateSurfaceLayerForVideo. Bug: 1502638 Change-Id: I49933b0b5b3d0f7ed0bb969e48eb4939187b8c2f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5035701 Reviewed-by: Frank Liberato <liberato@chromium.org> Reviewed-by: Frank Li <frankli@microsoft.com> Commit-Queue: William Carr <wicarr@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1225689}
- Loading branch information