diff options
author | Jeongmo Yang <jm80.yang@samsung.com> | 2021-04-14 13:05:06 +0900 |
---|---|---|
committer | Jeongmo Yang <jm80.yang@samsung.com> | 2021-04-14 13:05:06 +0900 |
commit | aff3dd8826d3b617c6afce3a96744cef4362c62d (patch) | |
tree | 5279fc10fb0fcfa348f83f0654f23260334a7248 | |
parent | 3552d5cba36f4e889f4ce57dfd7e7e7a43fdda64 (diff) | |
download | camera-aff3dd8826d3b617c6afce3a96744cef4362c62d.tar.gz camera-aff3dd8826d3b617c6afce3a96744cef4362c62d.tar.bz2 camera-aff3dd8826d3b617c6afce3a96744cef4362c62d.zip |
Fix invalid return valuesubmit/tizen/20210415.030456accepted/tizen/unified/20210416.011740
- camera_unset_media_packet_preview_cb() returns CAMERA_ERROR_NONE
even though it's not supported in some targets.
[Version] 0.4.53
[Issue Type] Bug fix
Change-Id: Iea9a51010ba3152797a2e48bca412cf55f8ab4e1
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
-rw-r--r-- | packaging/capi-media-camera.spec | 2 | ||||
-rw-r--r-- | src/camera.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/packaging/capi-media-camera.spec b/packaging/capi-media-camera.spec index ed93607..33937e1 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.52 +Version: 0.4.53 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/camera.c b/src/camera.c index 0a1d6aa..6a6c0e1 100644 --- a/src/camera.c +++ b/src/camera.c @@ -3706,6 +3706,11 @@ int camera_unset_media_packet_preview_cb(camera_h camera) return CAMERA_ERROR_INVALID_PARAMETER; } + if (camera_is_supported_media_packet_preview_cb(camera) == false) { + CAM_LOG_ERROR("NOT SUPPORTED"); + return CAMERA_ERROR_NOT_SUPPORTED; + } + CAM_LOG_INFO("Enter"); _camera_msg_send(api, NULL, pc->cb_info, &ret, CAMERA_CB_TIMEOUT); |