return FALSE;
}
-static void *_camera_msg_handler_func(gpointer data)
+static gpointer _camera_msg_handler_func(gpointer data)
{
int api = 0;
int type = 0;
}
-static void *_camera_msg_recv_func(gpointer data)
+static gpointer _camera_msg_recv_func(gpointer data)
{
int i = 0;
int recv_length = 0;
if (!cb_info->is_server_connected) {
char *error_msg = NULL;
+ if (cb_info->bufmgr == NULL) {
+ LOGE("No need to send error(handle is not created)");
+ return NULL;
+ }
+
if (cb_info->fd < 0) {
LOGE("fd is closed in client side");
- goto CB_HANDLER_EXIT;
+ return NULL;
}
/* send error msg for server disconnection */
if (!error_msg) {
LOGE("error_msg failed");
- goto CB_HANDLER_EXIT;
+ return NULL;
}
__camera_add_msg_to_queue(cb_info,
LOGE("add error msg for service disconnection done");
}
-CB_HANDLER_EXIT:
return NULL;
}