From fc7937c73d5729066079484c32a9785bddd74bc5 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 8 Feb 2023 00:54:02 +0100 Subject: Fix required plugin check on gstreamer 1.22 GStreamer 1.22 merged the videoscale plugin into the videoconvertscale plugin. So we should check if the Element is still loadable instead of checking the plugin name. fixes #1352 --- src/voip/WebRTCSession.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'src/voip/WebRTCSession.h') diff --git a/src/voip/WebRTCSession.h b/src/voip/WebRTCSession.h index da13e356..911a9b6c 100644 --- a/src/voip/WebRTCSession.h +++ b/src/voip/WebRTCSession.h @@ -54,7 +54,7 @@ public: return instance; } - bool havePlugins(bool isVideo, std::string *errorMessage = nullptr); + bool havePlugins(bool isVideo, bool isX11Screenshare, std::string *errorMessage = nullptr); webrtc::CallType callType() const { return callType_; } webrtc::State state() const { return state_; } bool haveLocalPiP() const; @@ -93,18 +93,19 @@ private: WebRTCSession(); CallDevices &devices_; - bool initialised_ = false; - bool haveVoicePlugins_ = false; - bool haveVideoPlugins_ = false; - webrtc::CallType callType_ = webrtc::CallType::VOICE; - webrtc::State state_ = webrtc::State::DISCONNECTED; - bool isOffering_ = false; - bool isRemoteVideoRecvOnly_ = false; - bool isRemoteVideoSendOnly_ = false; - QQuickItem *videoItem_ = nullptr; - GstElement *pipe_ = nullptr; - GstElement *webrtc_ = nullptr; - unsigned int busWatchId_ = 0; + bool initialised_ = false; + bool haveVoicePlugins_ = false; + bool haveVideoPlugins_ = false; + bool haveX11ScreensharePlugins_ = false; + webrtc::CallType callType_ = webrtc::CallType::VOICE; + webrtc::State state_ = webrtc::State::DISCONNECTED; + bool isOffering_ = false; + bool isRemoteVideoRecvOnly_ = false; + bool isRemoteVideoSendOnly_ = false; + QQuickItem *videoItem_ = nullptr; + GstElement *pipe_ = nullptr; + GstElement *webrtc_ = nullptr; + unsigned int busWatchId_ = 0; std::vector turnServers_; uint32_t shareWindowId_ = 0; -- cgit 1.5.1