[mmsvc-camera] fix prevent issue 95/52695/3
authorHyuntae, Kim <ht1211.kim@samsung.com>
Thu, 26 Nov 2015 01:40:39 +0000 (10:40 +0900)
committerHyuntae, Kim <ht1211.kim@samsung.com>
Fri, 27 Nov 2015 02:50:24 +0000 (11:50 +0900)
Change-Id: I0b34d4d4ff5ff2a97fc16ff64c1c0a3e1c241554

legacy/src/legacy_camera.c [changed mode: 0755->0644]
packaging/mmsvc-camera.spec

old mode 100755 (executable)
new mode 100644 (file)
index 609f03c..fafcd9d
@@ -2096,6 +2096,10 @@ int legacy_camera_get_recommended_preview_resolution(camera_h camera, int *width
        MMCamAttrsInfo height_info;
 
        legacy_camera_get_capture_resolution(camera, &capture_w, &capture_h);
+       if (capture_h == 0) {
+               LOGE("Capture Height is 0");
+               return CAMERA_ERROR_INVALID_OPERATION;
+       }
        ratio = (double)capture_w / (double)capture_h;
        if (ratio > 1.5) {
                wide = MM_CAMCORDER_PREVIEW_TYPE_WIDE;
index 8c7c849..f9e74c2 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:       mmsvc-camera
 Summary:    A Camera module for muse server
-Version:    0.2.15
+Version:    0.2.16
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0