diff options
author | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2019-08-19 12:46:41 +0200 |
---|---|---|
committer | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2019-08-20 08:51:27 +0200 |
commit | a409efbc5530ad1e8becb018e1ad3319b931b2f3 (patch) | |
tree | 92c08b7a2f118c10244e5cfe060a138c77f44ac0 /src/plugins/gstreamer/camerabin/camerabinv4limageprocessing.cpp | |
parent | 9fba45e999f7c65f3cecf8fc914befd3d8b6db80 (diff) |
CameraBinV4LImageProcessing: Show additional info in case of errors
Change-Id: I1ed22d646c2ff230217e1ecefaf37a0a45fa4b54
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/plugins/gstreamer/camerabin/camerabinv4limageprocessing.cpp')
-rw-r--r-- | src/plugins/gstreamer/camerabin/camerabinv4limageprocessing.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/gstreamer/camerabin/camerabinv4limageprocessing.cpp b/src/plugins/gstreamer/camerabin/camerabinv4limageprocessing.cpp index 46b9e4616..5b0c0d234 100644 --- a/src/plugins/gstreamer/camerabin/camerabinv4limageprocessing.cpp +++ b/src/plugins/gstreamer/camerabin/camerabinv4limageprocessing.cpp @@ -146,7 +146,7 @@ QVariant CameraBinV4LImageProcessing::parameter( qt_safe_close(fd); if (!ret) { - qWarning() << "Unable to get the parameter value:" << qt_error_string(errno); + qWarning() << "Unable to get the parameter value:" << parameter << ":" << qt_error_string(errno); return QVariant(); } @@ -229,7 +229,7 @@ void CameraBinV4LImageProcessing::setParameter( } if (::ioctl(fd, VIDIOC_S_CTRL, &control) != 0) - qWarning() << "Unable to set the parameter value:" << qt_error_string(errno); + qWarning() << "Unable to set the parameter value:" << parameter << ":" << qt_error_string(errno); qt_safe_close(fd); } @@ -266,7 +266,8 @@ void CameraBinV4LImageProcessing::updateParametersInfo( queryControl.id = supportedParametersEntries[i].cid; if (::ioctl(fd, VIDIOC_QUERYCTRL, &queryControl) != 0) { - qWarning() << "Unable to query the parameter info:" << qt_error_string(errno); + qWarning() << "Unable to query the parameter info:" << supportedParametersEntries[i].parameter + << ":" << qt_error_string(errno); continue; } |