summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRatchanan Srirattanamet <ratchanan@ubports.com>2019-10-28 20:27:09 +0700
committerVal Doroshchuk <valentyn.doroshchuk@qt.io>2020-09-23 19:39:24 +0000
commitce6440c999c34a2b80fa25121e893eccf68203a5 (patch)
tree7a09390b84526141fb46a56e1598d1f6165c9e82
parent3a24a182ad406de871a82a7c98cfc836a93c069d (diff)
Gstreamer: fix camerabin's supported focus point mode
Commit be7fef656a1d087d3d1d3fa102da4fce85855935 (Add support for face detection focus point mode to camerabin backend.) updated camerabin's isFocusPointModeSupported() to indicates face detection mode support. However, it forgets to remove the old code that says only auto and custom is supported, making the face detection never reported as supported. Pick-to: 5.15 Change-Id: I76627e0b72fb94cd1370bc990edd6c748086a5d9 Reviewed-by: Val Doroshchuk <valentyn.doroshchuk@qt.io>
-rw-r--r--src/plugins/gstreamer/camerabin/camerabinfocus.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/gstreamer/camerabin/camerabinfocus.cpp b/src/plugins/gstreamer/camerabin/camerabinfocus.cpp
index 20d55d7d3..33ac7e3d7 100644
--- a/src/plugins/gstreamer/camerabin/camerabinfocus.cpp
+++ b/src/plugins/gstreamer/camerabin/camerabinfocus.cpp
@@ -192,8 +192,6 @@ void CameraBinFocus::setFocusPointMode(QCameraFocus::FocusPointMode mode)
bool CameraBinFocus::isFocusPointModeSupported(QCameraFocus::FocusPointMode mode) const
{
- return mode == QCameraFocus::FocusPointAuto || mode == QCameraFocus::FocusPointCustom;
-
switch (mode) {
case QCameraFocus::FocusPointAuto:
case QCameraFocus::FocusPointCustom: