commit | 5d56b7cdf06ce637ce6425724cede76c05865969 | [log] [tgz] |
---|---|---|
author | Ilya Nikolaevskiy <ilnik@webrtc.org> | Tue Jul 02 14:47:20 2024 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 03 08:38:04 2024 |
tree | 33e64e3aa6cf54879cd71d8b0f923b5f57411b75 | |
parent | 881c1a73ad1cc2a169a6b6ed5486fbf2a1062e1f [diff] |
SimulcastEncoderAdapter: ensure registered callback isn't lost Currently, if the single-encoder mode fails to initialize, the callback is cleared on the encoder with Release() call. Below, the encoder_context for the first stream will be reused but then we only intercept the callback for the stream_idx>0. Therefore if RegisterEncodeCompleteCallback() is called before the InitEncode(), the first stream will end up with nullptr callback. To ensure this doesn't happen, restore the callback on the reusable encoder. Bug: none Change-Id: I1c830f3bf71f64807d5cc1a3000b73834011bde4 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/356180 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42580}
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.