summaryrefslogtreecommitdiffstats
path: root/src/multimedia/platform
diff options
context:
space:
mode:
authorArtem Dyomin <artem.dyomin@qt.io>2023-03-21 14:25:30 +0100
committerArtem Dyomin <artem.dyomin@qt.io>2023-03-22 22:17:12 +0100
commita757c89932cc5e09c2c22367b278e46880ec9357 (patch)
tree5cae4635a501bcf256740554920a95a07ac0d4d6 /src/multimedia/platform
parent14ec06dd99e0bb697f2a32923da6cff8b193fc48 (diff)
Add the base class for screen capture threads
Advantages: - get rid of the code duplication - generalize errors handling - added an opportunity for simple profiling of screen capturing - formats handling generalization will be added in next commits Pick-to: 6.5 Change-Id: I79ef73b01f39372c8ec7946bc737a476e6239193 Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'src/multimedia/platform')
-rw-r--r--src/multimedia/platform/qplatformscreencapture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multimedia/platform/qplatformscreencapture.cpp b/src/multimedia/platform/qplatformscreencapture.cpp
index 7a9f568d9..67140f23d 100644
--- a/src/multimedia/platform/qplatformscreencapture.cpp
+++ b/src/multimedia/platform/qplatformscreencapture.cpp
@@ -64,10 +64,10 @@ void QPlatformScreenCapture::updateError(QScreenCapture::Error error, const QStr
m_error = error;
m_errorString = errorString;
if (changed) {
- if (m_error != QScreenCapture::NoError)
+ if (m_error != QScreenCapture::NoError) {
emit m_screenCapture->errorOccurred(error, errorString);
- else
qWarning() << "Screen capture fail:" << error << "," << errorString;
+ }
emit m_screenCapture->errorChanged();
}