summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/camera.c5
1 files changed, 4 insertions, 1 deletions
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;
}