Change timeout for waiting response 39/99339/1 accepted/tizen/common/20161122.192859 accepted/tizen/ivi/20161122.235929 accepted/tizen/mobile/20161122.235721 accepted/tizen/tv/20161122.235803 accepted/tizen/wearable/20161122.235843 submit/tizen/20161122.044017
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 22 Nov 2016 11:18:42 +0000 (20:18 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 22 Nov 2016 11:18:42 +0000 (20:18 +0900)
[Version] 0.2.87
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=]

Change-Id: Ifb06f8930800de4a9f6e9dbada9aa5afd23733af
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
include/camera_private.h
packaging/capi-media-camera.spec
src/camera.c
test/camera_test.c

index e197cb1..5cd5337 100644 (file)
@@ -34,8 +34,7 @@ extern "C" {
 #endif /* BUFFER_MAX_PLANE_NUM */
 
 #define BUFFER_MAX_PLANE_NUM     4
-#define CAMERA_CB_TIMEOUT        5
-#define CAMERA_CB_TIMEOUT_LONG   8
+#define CAMERA_CB_TIMEOUT        4
 
 #define CAMERA_MSG_PARAM_SET(param, msg_type, set_value) { \
        param.type = MUSE_TYPE_##msg_type; \
index 1c17134..f29f917 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-camera
 Summary:    A Camera API
-Version:    0.2.86
+Version:    0.2.87
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 188fabc..b4f152d 100644 (file)
@@ -2641,7 +2641,7 @@ int camera_start_preview(camera_h camera)
 
        LOGD("Enter");
 
-       _camera_msg_send(api, pc->cb_info, &ret, CAMERA_CB_TIMEOUT_LONG);
+       _camera_msg_send(api, pc->cb_info, &ret, CAMERA_CB_TIMEOUT);
        if (ret == CAMERA_ERROR_NONE && CHECK_PREVIEW_CB(pc->cb_info, PREVIEW_CB_TYPE_EVAS)) {
                ret = _camera_start_evas_rendering(camera);
                if (ret != CAMERA_ERROR_NONE) {
index 1d3b608..e2ae643 100644 (file)
@@ -783,6 +783,8 @@ static void main_menu(gchar buf)
                        hcamcorder->menu_state = MENU_STATE_SETTING;
                        break;
                case '4': /* Change device (Rear <-> Front) */
+                       camera_set_display_reuse_hint(hcamcorder->camera, true);
+
                        camera_stop_preview(hcamcorder->camera);
 
                        if (hcamcorder->type == CAMERA_DEVICE_CAMERA0) {