Ignore MM_ERROR_OUT_OF_STORAGE, MM_ERROR_FILE_WRITE 12/117612/2
authorJeongmo Yang <jm80.yang@samsung.com>
Thu, 16 Feb 2017 02:01:35 +0000 (11:01 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 7 Mar 2017 02:48:56 +0000 (11:48 +0900)
MM_ERROR_OUT_OF_STORAGE and MM_ERROR_FILE_WRITE are only occurred while recording,
but they're passed as a CAMERA_ERROR_INVALID_OPERATION in camera API.
It's just invalid operation, so updated to ignore them.

[Version] 0.2.71
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-mobile_20170215.1]

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

index 64c3a57..b279b1d 100644 (file)
@@ -474,6 +474,10 @@ static int __mm_camera_message_callback(int message, void *param, void *user_dat
                case MM_ERROR_CAMCORDER_DEVICE_REG_TROUBLE:
                        camera_error = CAMERA_ERROR_ESD;
                        break;
+               case MM_ERROR_OUT_OF_STORAGE:
+               case MM_ERROR_FILE_WRITE:
+                       LOGW("unhandled message : 0x%x", m->code);
+                       return 0;
                default:
                        camera_error = CAMERA_ERROR_INVALID_OPERATION;
                        break;
index bf71843..7230d16 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-camera
 Summary:    A Camera module for muse server
-Version:    0.2.70
+Version:    0.2.71
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0