diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-06-01 17:18:54 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-06-24 03:16:43 +0000 |
commit | d10211769e65d4e547472587b23d556fcc177430 (patch) | |
tree | 6810bcd8a2010f5b26cde351b4b110ac2662ba42 | |
parent | 698ecf3ba6da9128fa46a44e54e2bb1a37cff847 (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>
-rw-r--r-- | src/core/media_capture_devices_dispatcher.cpp | 2 |
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 9f8b3436a..fc436cff2 100644 --- a/src/core/media_capture_devices_dispatcher.cpp +++ b/src/core/media_capture_devices_dispatcher.cpp @@ -185,7 +185,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); } |