summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2022-06-01 17:18:54 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-06-24 19:57:40 +0000
commita27b24f71c91f3f4050272b5668d7a2effacd4b4 (patch)
tree1d76f2e71872ec77320f8db8d6a277e98964899a /src
parent0a2eeb4ca0be137b7668dfcf15ef9455925f0cad (diff)
Fix method check
Detected by codechecker. Change-Id: I8814180ef6bd591ed3e95fc4b4abff3454f10bdf Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 51faba3af76f4a7c67c769a5ab0be17c9aa54f83) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/core/media_capture_devices_dispatcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/media_capture_devices_dispatcher.cpp b/src/core/media_capture_devices_dispatcher.cpp
index 14c7bd62e..7a080aabf 100644
--- a/src/core/media_capture_devices_dispatcher.cpp
+++ b/src/core/media_capture_devices_dispatcher.cpp
@@ -140,7 +140,7 @@ content::DesktopMediaID getDefaultScreenId()
GetMonitorsFunc getMonitors = reinterpret_cast<GetMonitorsFunc>(dlsym(RTLD_DEFAULT, "XRRGetMonitors"));
typedef void (*FreeMonitorsFunc)(XRRMonitorInfo*);
FreeMonitorsFunc freeMonitors = reinterpret_cast<FreeMonitorsFunc>(dlsym(RTLD_DEFAULT, "XRRFreeMonitors"));
- if (!getMonitors && !freeMonitors) {
+ if (!getMonitors || !freeMonitors) {
qWarning("Unable to link XRandR monitor functions.");
return content::DesktopMediaID(content::DesktopMediaID::TYPE_SCREEN, 0);
}