Skip to content

Commit

Permalink
Don't disable screen sharing due to the lack of pipewire
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed May 10, 2024
1 parent 1cbf5fa commit f701713
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions webrtc/platform/linux/webrtc_environment_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ EnvironmentLinux::EnvironmentLinux(not_null<EnvironmentDelegate*> delegate)
: _audioFallback(delegate)
, _cameraFallback(delegate) {
#ifdef WEBRTC_USE_PIPEWIRE
if (webrtc::InitPipewireStubs()) {
_pipewireInitialized = true;
} else {
if (!webrtc::InitPipewireStubs()) {
LOG(("Audio Info: Failed to load pipewire 0.3 stubs."));
}
#endif // WEBRTC_USE_PIPEWIRE
Expand Down Expand Up @@ -73,11 +71,7 @@ bool EnvironmentLinux::refreshFullListOnChange(DeviceType type) {
}

bool EnvironmentLinux::desktopCaptureAllowed() const {
#ifdef WEBRTC_USE_PIPEWIRE
return _pipewireInitialized;
#else // WEBRTC_USE_PIPEWIRE
return true;
#endif // WEBRTC_USE_PIPEWIRE
}

std::optional<QString> EnvironmentLinux::uniqueDesktopCaptureSource() const {
Expand Down
1 change: 0 additions & 1 deletion webrtc/platform/linux/webrtc_environment_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class EnvironmentLinux final : public Environment {
private:
details::EnvironmentOpenAL _audioFallback;
details::EnvironmentVideoCapture _cameraFallback;
bool _pipewireInitialized = false;

};

Expand Down

0 comments on commit f701713

Please sign in to comment.