if (!cb_info->preview_cb_info.thread) {
LOGI("The thread for preview cb is not created yet, create it now");
if (!__create_msg_handler_thread(&cb_info->preview_cb_info,
- CAMERA_MESSAGE_HANDLER_TYPE_PREVIEW_CB, "cam:preview_cb", cb_info)) {
+ CAMERA_MESSAGE_HANDLER_TYPE_PREVIEW_CB, "cam:preview_cb", cb_info)) {
CAM_LOG_ERROR("failed to create thread for preview cb");
g_free(cam_msg);
return;
/* message handler thread */
if (!__create_msg_handler_thread(&cb_info->msg_handler_info,
- CAMERA_MESSAGE_HANDLER_TYPE_GENERAL, "cam:msg_handler", cb_info)) {
+ CAMERA_MESSAGE_HANDLER_TYPE_GENERAL, "cam:msg_handler", cb_info)) {
CAM_LOG_ERROR("msg_handler_info failed");
goto ErrorExit;
}
/* message handler thread for capture callback */
if (!__create_msg_handler_thread(&cb_info->capture_cb_info,
- CAMERA_MESSAGE_HANDLER_TYPE_CAPTURE_CB, "cam:capture_cb", cb_info)) {
+ CAMERA_MESSAGE_HANDLER_TYPE_CAPTURE_CB, "cam:capture_cb", cb_info)) {
CAM_LOG_ERROR("capture_cb_info failed");
goto ErrorExit;
}
if (current_state == CAMERA_STATE_CREATED) {
if (!__create_msg_handler_thread(&pc->cb_info->preview_cb_info,
- CAMERA_MESSAGE_HANDLER_TYPE_PREVIEW_CB, "cam:preview_cb", pc->cb_info)) {
+ CAMERA_MESSAGE_HANDLER_TYPE_PREVIEW_CB, "cam:preview_cb", pc->cb_info)) {
CAM_LOG_ERROR("preview_cb_info failed");
return CAMERA_ERROR_INVALID_OPERATION;
}