NULL);
if (ret == MM_ERROR_NONE)
- *visible = result;
+ *visible = (bool)result;
return __convert_camera_error_code(__func__, ret);
}
}
int ret = MM_ERROR_NONE;
+ int get_enabled = 0;
camera_s *handle = (camera_s *)camera;
ret = mm_camcorder_get_attributes(handle->mm_handle, NULL,
- MMCAM_TAG_ENABLE, enable,
+ MMCAM_TAG_ENABLE, get_enabled,
NULL);
+ if (ret == MM_ERROR_NONE)
+ *enable = (bool)get_enabled;
+
return __convert_camera_error_code(__func__, ret);
}
}
int ret = MM_ERROR_NONE;
+ int get_enabled = 0;
camera_s *handle = (camera_s *)camera;
ret = mm_camcorder_get_attributes(handle->mm_handle, NULL,
- MMCAM_CAMERA_ANTI_HANDSHAKE, enabled,
+ MMCAM_CAMERA_ANTI_HANDSHAKE, get_enabled,
NULL);
+ if (ret == MM_ERROR_NONE)
+ *enabled = (bool)get_enabled;
+
return __convert_camera_error_code(__func__, ret);
}
ret = mm_camcorder_get_attributes(handle->mm_handle, NULL,
MMCAM_CAMERA_VIDEO_STABILIZATION, &mode,
NULL);
+
if (ret == MM_ERROR_NONE)
- *enabled = (mode == MM_CAMCORDER_VIDEO_STABILIZATION_ON);
+ *enabled = (bool)mode;
return __convert_camera_error_code(__func__, ret);
}
NULL);
if (ret == MM_ERROR_NONE)
- *enabled = mode;
+ *enabled = (bool)mode;
return __convert_camera_error_code(__func__, ret);
}