Release version 0.2.15 15/51915/3 accepted/tizen/mobile/20151119.033128 accepted/tizen/tv/20151119.033144 accepted/tizen/wearable/20151119.033152 submit/tizen/20151118.042539
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 17 Nov 2015 08:05:23 +0000 (17:05 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Wed, 18 Nov 2015 04:34:07 +0000 (13:34 +0900)
1. Fix TSAM-584 : camera start fails
 - connection refused problem of old socket path

Change-Id: If2e4add2384f31ba1769a8252d71a5c4d6554d4e
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
legacy/src/legacy_camera.c
packaging/mmsvc-camera.spec

index d994187..609f03c 100755 (executable)
@@ -1366,6 +1366,16 @@ int legacy_camera_set_display(camera_h camera, camera_display_type_e type, camer
        if (ret == MM_ERROR_NONE) {
                if (type == CAMERA_DISPLAY_TYPE_REMOTE) {
                        socket_path = (char *)handle->display_handle;
+
+                       if (!access(socket_path, F_OK)) {
+                               LOGW("socket_path already existed. remove it.");
+                               if (!unlink(socket_path)) {
+                                       LOGW("[%s] remove done", socket_path);
+                               } else {
+                                       LOGE("[%s] remove failed : errno %d", socket_path, errno);
+                               }
+                       }
+
                        ret = mm_camcorder_set_attributes(handle->mm_handle, NULL,
                                                          MMCAM_DISPLAY_SHM_SOCKET_PATH, socket_path, strlen(socket_path),
                                                          NULL);
index 054995a..8c7c849 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:       mmsvc-camera
 Summary:    A Camera module for muse server
-Version:    0.2.14
+Version:    0.2.15
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0