summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeongmo Yang <jm80.yang@samsung.com>2019-12-16 15:39:41 +0900
committerJeongmo Yang <jm80.yang@samsung.com>2019-12-16 15:42:50 +0900
commit5e401243289d2dfe145e7b6c3d7606ed792c83c1 (patch)
tree6adaf2f6d8491d9e58ebee80dbdabdd88267c778
parentc1acc698c94f6b648ef40733f4d22e7dce482607 (diff)
downloadcamera-accepted/tizen_5.5_unified.tar.gz
camera-accepted/tizen_5.5_unified.tar.bz2
camera-accepted/tizen_5.5_unified.zip
- Previously, camera API returned INVALID_OPERATION error although MM_ERROR_NOT_SUPPORT_API is returned from mm_display_interface_set_display(). [Version] 0.4.28 [Profile] Common [Issue Type] Update Change-Id: Ib5302f1bba74e04fc99af4b693be0e37d9b501f2 Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
-rw-r--r--packaging/capi-media-camera.spec2
-rw-r--r--src/camera.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/packaging/capi-media-camera.spec b/packaging/capi-media-camera.spec
index 5efd6f9..27f9f7f 100644
--- a/packaging/capi-media-camera.spec
+++ b/packaging/capi-media-camera.spec
@@ -1,6 +1,6 @@
Name: capi-media-camera
Summary: A Camera API
-Version: 0.4.27
+Version: 0.4.28
Release: 0
Group: Multimedia/API
License: Apache-2.0
diff --git a/src/camera.c b/src/camera.c
index f4bf264..211b29c 100644
--- a/src/camera.c
+++ b/src/camera.c
@@ -3176,7 +3176,10 @@ int camera_set_display(camera_h camera, camera_display_type_e type, camera_displ
}
mm_ret = mm_display_interface_set_display(cb_info->dp_interface, type, display, &dp_info->parent_id);
- if (mm_ret != MM_ERROR_NONE) {
+ if (mm_ret == MM_ERROR_NOT_SUPPORT_API) {
+ LOGE("[NOT_SUPPORTED] type %d", type);
+ return CAMERA_ERROR_NOT_SUPPORTED;
+ } else if (mm_ret != MM_ERROR_NONE) {
LOGE("[INVALID_OPERATION] set display failed[0x%x]", mm_ret);
return CAMERA_ERROR_INVALID_OPERATION;
}