ret = CAMERA_ERROR_PERMISSION_DENIED;
LOGE("security check failed 0x%x", ret);
muse_camera_msg_return(api, class, ret, module);
- return MUSE_CAMERA_ERROR_NONE;
+ return MUSE_CAMERA_ERROR_INVALID;
}
/* init handle */
ret = CAMERA_ERROR_OUT_OF_MEMORY;
LOGE("handle alloc failed 0x%x", ret);
muse_camera_msg_return(api, class, ret, module);
- return MUSE_CAMERA_ERROR_NONE;
+ return MUSE_CAMERA_ERROR_INVALID;
}
memset(muse_camera, 0x0, sizeof(muse_camera_handle_s));
ret = CAMERA_ERROR_INVALID_OPERATION;
muse_camera_msg_return(api, class, ret, module);
- return MUSE_CAMERA_ERROR_NONE;
+ return MUSE_CAMERA_ERROR_INVALID;
}
ret = legacy_camera_create((camera_device_e)device_type, &muse_camera->camera_handle);
muse_camera = NULL;
muse_camera_msg_return(api, class, ret, module);
- return MUSE_CAMERA_ERROR_NONE;
+ return MUSE_CAMERA_ERROR_INVALID;
}
g_mutex_init(&muse_camera->task_lock);
muse_camera = NULL;
muse_camera_msg_return(api, class, ret, module);
- return MUSE_CAMERA_ERROR_NONE;
+ return MUSE_CAMERA_ERROR_INVALID;
}
muse_camera_msg_return(api, class, ret, module);
- return MUSE_CAMERA_ERROR_NONE;
+ if (ret == CAMERA_ERROR_NONE)
+ return MUSE_CAMERA_ERROR_NONE;
+ else
+ return MUSE_CAMERA_ERROR_INVALID;
}
int camera_dispatcher_start_preview(muse_module_h module)
camera_cmd_dispatcher_shutdown, /* MUSE_MODULE_COMMAND_SHUTDOWN */
NULL, /* MUSE_MODULE_COMMAND_DEBUG_INFO_DUMP */
NULL, /* MUSE_MODULE_COMMAND_CREATE_SERVER_ACK */
- NULL /* MUSE_MODULE_COMMAND_RESOURCE_NOT_AVAILABLE */
+ NULL, /* MUSE_MODULE_COMMAND_RESOURCE_NOT_AVAILABLE */
+ NULL /* MUSE_MODULE_COMMAND_EXTERNAL_STORAGE_STATE_CHANGED */
};