Make RtpVideoSender::OnBitrateUpdated lock-free SetFecAllowed() is called by the encoder, and OnBitrateUpdated() reads the value on the transport queue. This was the last reason for OnBitrateUpdated() to take mutex_, which blocked the worker thread whenever a bitrate update coincided with packetization of an encoded frame. Post the value to the transport queue instead and guard it with transport_checker_. FecControllerOverride is public API, so this works for calls from any thread. Bug: webrtc:42223727 Change-Id: Iad4757cfd3092f39fda1086fcb942c3d56c5b8bf Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/506163 Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/main@{#48789}
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.