commit | 48027d7bc5ec0968ac4c4874bbea55701da25e2f | [log] [tgz] |
---|---|---|
author | Jan Grulich <grulja@gmail.com> | Thu Aug 04 09:45:19 2022 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Aug 08 17:19:46 2022 |
tree | 13ebe57d2d6ec3f03da6a830114ba9bdc9b82962 | |
parent | f449af8dd9e507ee2ff0af42a9a42506b2d38a29 [diff] |
Wayland screencast: fix crash on fd ownership violation We pass the fd we recieve from xdg-desktop-portal to PipeWire to connect to it and according to the specification PipeWire automatically closes it on disconnect or failure. We also close the fd ourself when we tear down the portal connection so we have to avoid doing this twice. Looks OBS studio just duplicates the fd passed to PipeWire so do the same in order to avoid the fd ownership violation once we stop sharing. The fd we recieve from xdg-desktop-portal is from PipeWire also using fcntl() with F_DUPFD_CLOEXEC option. Bug: chromium:1339236 Change-Id: Ia7aee36e520dd5ff9a40688a6807e31c4e636f8e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/270421 Commit-Queue: Alexander Cooper <alcooper@chromium.org> Reviewed-by: Alexander Cooper <alcooper@chromium.org> Cr-Commit-Position: refs/heads/main@{#37712}
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.