summaryrefslogtreecommitdiffstats
path: root/src/plugins/gstreamer
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-08-02 14:44:48 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2019-08-09 10:59:02 +0200
commitba875f66b8bb4b696f33223638edb2a9e7ba0996 (patch)
treec28402fe64299289f80a702aa4fb22a46e2b11c7 /src/plugins/gstreamer
parent70ad769934d9c82e1d1dd11e96386ce59db7631e (diff)
CameraBinV4LImageProcessing: Show warning only if the camera is loaded
Change-Id: Ie1c77fa373d37979e69c08ab4a959c18efc9599e Fixes: QTBUG-76135 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/plugins/gstreamer')
-rw-r--r--src/plugins/gstreamer/camerabin/camerabinv4limageprocessing.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/gstreamer/camerabin/camerabinv4limageprocessing.cpp b/src/plugins/gstreamer/camerabin/camerabinv4limageprocessing.cpp
index 6ca1dbe94..46b9e4616 100644
--- a/src/plugins/gstreamer/camerabin/camerabinv4limageprocessing.cpp
+++ b/src/plugins/gstreamer/camerabin/camerabinv4limageprocessing.cpp
@@ -124,7 +124,8 @@ QVariant CameraBinV4LImageProcessing::parameter(
QMap<ProcessingParameter, SourceParameterValueInfo>::const_iterator sourceValueInfo =
m_parametersInfo.constFind(parameter);
if (sourceValueInfo == m_parametersInfo.constEnd()) {
- qWarning() << "Unable to get the parameter value: the parameter is not supported.";
+ if (!m_parametersInfo.empty())
+ qWarning() << "Unable to get the unsupported parameter:" << parameter;
return QVariant();
}
@@ -178,7 +179,8 @@ void CameraBinV4LImageProcessing::setParameter(
QMap<ProcessingParameter, SourceParameterValueInfo>::const_iterator sourceValueInfo =
m_parametersInfo.constFind(parameter);
if (sourceValueInfo == m_parametersInfo.constEnd()) {
- qWarning() << "Unable to set the parameter value: the parameter is not supported.";
+ if (!m_parametersInfo.empty())
+ qWarning() << "Unable to set the unsupported parameter:" << parameter;
return;
}