[Release version 0.2.52] Fix coding rule violation 27/67227/1 accepted/tizen/common/20160426.143723 accepted/tizen/ivi/20160426.103410 accepted/tizen/mobile/20160426.103502 accepted/tizen/tv/20160426.103306 accepted/tizen/wearable/20160426.103416 submit/tizen/20160426.065815
authorHaesu Gwon <haesu.gwon@samsung.com>
Tue, 26 Apr 2016 02:35:13 +0000 (11:35 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Tue, 26 Apr 2016 02:35:13 +0000 (11:35 +0900)
Change-Id: Ie6b9412f5c6608805ea0b1ce2e409712c922271b
Signed-off-by: Haesu Gwon <haesu.gwon@samsung.com>
packaging/capi-media-camera.spec
src/camera.c
src/camera_internal.c

index fca52aa..282afdb 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:       capi-media-camera
 Summary:    A Camera API
-Version:    0.2.51
+Version:    0.2.52
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index b70bd41..fbfe46d 100644 (file)
@@ -2711,11 +2711,10 @@ int camera_set_display(camera_h camera, camera_display_type_e type, camera_displ
        } else
                muse_camera_msg_send1(api, sock_fd, cb_info, ret, INT, type);
 
-       if (ret != CAMERA_ERROR_NONE) {
+       if (ret != CAMERA_ERROR_NONE)
                LOGE("set display error 0x%x", ret);
-       } else if (type == CAMERA_DISPLAY_TYPE_EVAS) {
+       else if (type == CAMERA_DISPLAY_TYPE_EVAS)
                SET_PREVIEW_CB_TYPE(cb_info, PREVIEW_CB_TYPE_EVAS);
-       }
 
        return ret;
 }
@@ -2882,7 +2881,7 @@ int camera_set_display_rotation(camera_h camera, camera_rotation_e rotation)
 
                g_mutex_unlock(&pc->cb_info->evas_mutex);
 
-               if (ret!= MM_ERROR_NONE) {
+               if (ret != MM_ERROR_NONE) {
                        LOGE("failed to set rotation for evas surface 0x%x", ret);
                        return CAMERA_ERROR_INVALID_OPERATION;
                }
@@ -2966,7 +2965,7 @@ int camera_set_display_flip(camera_h camera, camera_flip_e flip)
 
                g_mutex_unlock(&pc->cb_info->evas_mutex);
 
-               if (ret!= MM_ERROR_NONE) {
+               if (ret != MM_ERROR_NONE) {
                        LOGE("failed to set flip for evas surface 0x%x", ret);
                        return CAMERA_ERROR_INVALID_OPERATION;
                }
index b783041..ac76cfd 100644 (file)
@@ -38,4 +38,4 @@ int camera_start_evas_rendering(camera_h camera)
 int camera_stop_evas_rendering(camera_h camera, bool keep_screen)
 {
        return _camera_stop_evas_rendering(camera, keep_screen);
-}
\ No newline at end of file
+}