Skip to content

Commit

Permalink
Fix pipewire functionality on non-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Jun 21, 2022
1 parent e5c89d2 commit 9b11599
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions webrtc/webrtc_media_devices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
#include <modules/video_capture/video_capture_factory.h>
#include <modules/audio_device/include/audio_device_factory.h>

#ifdef WEBRTC_LINUX
#ifdef WEBRTC_USE_PIPEWIRE
#include <modules/desktop_capture/linux/wayland/shared_screencast_stream.h>
#endif // WEBRTC_LINUX
#endif // WEBRTC_USE_PIPEWIRE

#ifdef WEBRTC_MAC
//#define MAC_TRACK_MEDIA_DEVICES
Expand Down Expand Up @@ -221,11 +221,11 @@ bool DesktopCaptureAllowed() {
}

std::optional<QString> UniqueDesktopCaptureSource() {
#ifdef WEBRTC_LINUX
#ifdef WEBRTC_USE_PIPEWIRE
return LinuxUniqueDesktopCaptureSource();
#else // WEBRTC_LINUX
#else // WEBRTC_USE_PIPEWIRE
return std::nullopt;
#endif // WEBRTC_LINUX
#endif // WEBRTC_USE_PIPEWIRE
}

bool InitPipewireStubs() {
Expand Down

0 comments on commit 9b11599

Please sign in to comment.