diff options
author | Jeongmo Yang <jm80.yang@samsung.com> | 2015-12-18 16:58:10 +0900 |
---|---|---|
committer | Jeongmo Yang <jm80.yang@samsung.com> | 2015-12-18 16:58:10 +0900 |
commit | 890cf39b1daf219207db80243c98a2125b35c613 (patch) | |
tree | e5343ab86f0f01afa89da34279ccdc10afc87314 | |
parent | 0ef560ab03c589ae56f954543a2a26cab0b80395 (diff) | |
download | camera-890cf39b1daf219207db80243c98a2125b35c613.tar.gz camera-890cf39b1daf219207db80243c98a2125b35c613.tar.bz2 camera-890cf39b1daf219207db80243c98a2125b35c613.zip |
Release version 0.2.28submit/tizen/20151218.100812accepted/tizen/wearable/20151219.044808accepted/tizen/tv/20151219.044521accepted/tizen/mobile/20151219.044059
1. Fix UTC - some negative case of camera_set_media_packet_preview_cb API
Change-Id: Id252856ad987ae6ef94d8ba74d2e485ae1d19532
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
-rw-r--r-- | packaging/capi-media-camera.spec | 2 | ||||
-rwxr-xr-x | 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 f762afe..8a3651d 100644 --- a/packaging/capi-media-camera.spec +++ b/packaging/capi-media-camera.spec @@ -3,7 +3,7 @@ Name: capi-media-camera Summary: A Camera API -Version: 0.2.27 +Version: 0.2.28 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/camera.c b/src/camera.c index 1620bd4..3bca0c7 100755 --- a/src/camera.c +++ b/src/camera.c @@ -2941,6 +2941,11 @@ int camera_set_media_packet_preview_cb(camera_h camera, camera_media_packet_prev return CAMERA_ERROR_INVALID_PARAMETER; } + if (camera_is_supported_media_packet_preview_cb(camera) == false) { + LOGE("NOT SUPPORTED"); + return CAMERA_ERROR_NOT_SUPPORTED; + } + if (callback == NULL) { LOGE("INVALID_PARAMETER(0x%08x) - callback", CAMERA_ERROR_INVALID_PARAMETER); return CAMERA_ERROR_INVALID_PARAMETER; |