LOGE("failed to get platform info for camera support");
if (!camera_feature_supported) {
- LOGE("CAMERA NOT SUPPORTED, BUT INI FILE FOR CMAERA IS EXISTED. RECOMMEND TO REMOVE IT.");
+ LOGE("CAMERA NOT SUPPORTED, BUT INI FILE FOR CAMERA IS EXISTED. RECOMMEND TO REMOVE IT.");
ret = CAMERA_ERROR_NOT_SUPPORTED;
goto _CREATE_ERROR;
}
int ret = CAMERA_ERROR_NONE;
int is_called = false;
char value_key[KEY_LENGTH] = {'\0',};
+ bool camera_feature_supported = false;
camera_h camera = NULL;
camera_device_e device_type = CAMERA_DEVICE_CAMERA0;
camera_device_state_e get_device_state = CAMERA_DEVICE_STATE_NULL;
camera = NULL;
}
+ /* camera feature support check */
+ if (ret == CAMERA_ERROR_NONE) {
+ if (muse_server_get_platform_info(CAMERA_FEATURE_NAME, &camera_feature_supported) != MM_ERROR_NONE)
+ LOGE("failed to get platform info for camera support");
+
+ if (!camera_feature_supported) {
+ LOGE("CAMERA NOT SUPPORTED, BUT INI FILE FOR CAMERA IS EXISTED. RECOMMEND TO REMOVE IT.");
+ ret = CAMERA_ERROR_NOT_SUPPORTED;
+ }
+ }
+
muse_server_module_set_value(module, MUSED_KEY_DEVICE_STATE_RETURN, ret);
muse_server_module_set_value(module, MUSED_KEY_DEVICE_STATE_CHECK, (int)true);
} else {