Fix race conditions in RTCPeerConnectionFactoryTests testSetCodecPreferences and testSetHeaderExtensionsToNegotiate call offerForConstraints:completionHandler:, which asynchronously dispatches CreateOffer to the signaling thread. Both tests previously executed [peerConnection close] and object deallocation before waiting on dispatch_semaphore_wait. Closing and deallocating peerConnection destroys the session, invalidating weak pointers on the signaling thread and causing the asynchronous CreateOffer task to fail. This change defers closure and deallocation until after the semaphore wait completes. Bug: none Change-Id: If269ceb4918fa0fcc4189044f35e6c1e72a6b6cc Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/472661 Commit-Queue: Artem Titov <titovartem@webrtc.org> Reviewed-by: Artem Titov <titovartem@webrtc.org> Auto-Submit: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#47714}
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.