4bb32b2390
Fix fcntl call when duplicating a file descriptor
17 lines
769 B
Diff
17 lines
769 B
Diff
diff --git a/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc b/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc
|
|
--- a/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc
|
|
+++ b/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc
|
|
@@ -434,11 +434,11 @@
|
|
{
|
|
PipeWireThreadLoopLock thread_loop_lock(pw_main_loop_);
|
|
|
|
if (fd >= 0) {
|
|
pw_core_ = pw_context_connect_fd(
|
|
- pw_context_, fcntl(fd, F_DUPFD_CLOEXEC), nullptr, 0);
|
|
+ pw_context_, fcntl(fd, F_DUPFD_CLOEXEC, 0), nullptr, 0);
|
|
} else {
|
|
pw_core_ = pw_context_connect(pw_context_, nullptr, 0);
|
|
}
|
|
|
|
if (!pw_core_) {
|