diff options
author | Jeongmo Yang <jm80.yang@samsung.com> | 2016-11-04 19:34:59 +0900 |
---|---|---|
committer | Jeongmo Yang <jm80.yang@samsung.com> | 2016-11-07 17:17:45 +0900 |
commit | e977273bbc37b4e2ae102bc6354f93d6e0966127 (patch) | |
tree | d5435961b5ec2679c7820b0f683397c599108808 /include | |
parent | 0ed7202aa2b6829c32a9c53abb99a23e3022ce47 (diff) | |
download | camera-e977273bbc37b4e2ae102bc6354f93d6e0966127.tar.gz camera-e977273bbc37b4e2ae102bc6354f93d6e0966127.tar.bz2 camera-e977273bbc37b4e2ae102bc6354f93d6e0966127.zip |
Update code for message handling
1. Process all received messages (Remove the code to drop message)
2. Add error handling for uncompleted message
[Version] 0.2.82
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T/E) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-mobile_20161101.3]
Change-Id: I05f21c071353a71876fe393bdf461442ebe87258
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/camera_private.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/camera_private.h b/include/camera_private.h index 1dc339d..c70318f 100644 --- a/include/camera_private.h +++ b/include/camera_private.h @@ -34,7 +34,6 @@ extern "C" { #endif /* BUFFER_MAX_PLANE_NUM */ #define BUFFER_MAX_PLANE_NUM 4 -#define CAMERA_PARSED_STRING_NUM_MAX 20 #define CAMERA_CB_TIMEOUT 5 #define CAMERA_CB_TIMEOUT_LONG 8 @@ -114,7 +113,7 @@ typedef struct _camera_cb_info_s { /* message receive thread */ GThread *msg_recv_thread; gint msg_recv_running; - gchar recv_msg[MUSE_CAMERA_MSG_MAX_LENGTH * CAMERA_PARSED_STRING_NUM_MAX]; + gchar recv_msg[MUSE_MSG_MAX_LENGTH]; GCond api_cond[MUSE_CAMERA_API_MAX]; GMutex api_mutex[MUSE_CAMERA_API_MAX]; gint api_activating[MUSE_CAMERA_API_MAX]; |