[WGC] don't leak resources when capture session ends To free resources related with the capture session, users must `Close` the frame pool, otherwise WGC's internal worker thread never exits, and references to some WinRT objects are never released and so those objects also leak. Also, construction of the frame pool may fail, and since it is constructed after `WgcCaptureSession` has been constructed (as part of `WgcCaptureSession::StartCapture`, the destructor will be invoked and call `WgcCaptureSession::RemoveFrameArrivedEventHandler`, which will `DCHECK` in debug builds and crash. In release builds this isn't an issue since `frame_arrived_token_` being not null also guarantees that `frame_pool_` is not null. Bug: chromium:482343989 Change-Id: I790b2f4fd1399bbf9b4e9fd0e93977103efabab5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/447560 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Alexander Cooper <alcooper@chromium.org> Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org> Cr-Commit-Position: refs/heads/main@{#47043}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.