1. Modify length calculation of array msg 2.Fix error check bug 25/71825/3 accepted/tizen/common/20160527.153736 accepted/tizen/ivi/20160528.111049 accepted/tizen/mobile/20160528.111024 accepted/tizen/tv/20160528.111046 accepted/tizen/wearable/20160528.111034 submit/tizen/20160527.085323
authorHaesu Gwon <haesu.gwon@samsung.com>
Fri, 27 May 2016 08:15:41 +0000 (17:15 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Fri, 27 May 2016 08:26:41 +0000 (17:26 +0900)
Change-Id: I2e36ca60ba1b9b6c2c9d9216d6a20baa3641864b
Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
legacy/src/legacy_camera.c
muse/include/muse_camera_msg.h
packaging/mmsvc-camera.spec

index 67f6036..42bb32b 100644 (file)
@@ -4531,7 +4531,7 @@ int legacy_camera_attr_get_display_roi_area(camera_h camera, int *display_roi_ar
                                          MMCAM_DISPLAY_RECT_HEIGHT, &height,
                                          NULL);
 
-       if (ret != MM_ERROR_NONE) {
+       if (ret == MM_ERROR_NONE) {
                LOGD("get roi area : %d,%d,%dx%d", x, y, width, height);
 
                display_roi_area[0] = x;
index 01bab0e..df16c65 100644 (file)
@@ -338,7 +338,7 @@ typedef const char* STRING;
                int *__value__ = (int *)param; \
                __sndMsg__ = muse_core_msg_json_factory_new(api, \
                                        MUSE_TYPE_ARRAY, #param, \
-                                       datum_size == sizeof(int)? length :  \
+                                       datum_size == sizeof(int)? length / sizeof(int) :  \
                                        length / sizeof(int) + (length % sizeof(int)?1:0), \
                                        __value__, \
                                        0); \
index 42b37a8..2b8763e 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:       mmsvc-camera
 Summary:    A Camera module for muse server
-Version:    0.2.36
+Version:    0.2.37
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0