}
}
#else /* USE_OPEN_CHK */
- if (!CAMERASRC_IS_DEV_CLOSED(p)) {
+ if (CAMERASRC_IS_DEV_CLOSED(p)) {
ret = __camerasrc_open_device(p);
if (ret != CAMERASRC_SUCCESS) {
camsrc_error("camera open failed %x", ret);
}
#else /* USE_OPEN_CHK */
if(!CAMERASRC_IS_DEV_CLOSED(p)) {
-
if( !(p->is_async_open) ) {
close(p->dev_fd);
}
#define CAMERASRC_SECONDARY_EXTRA_INFO_PATH "/tmp/.camsecondaryextrainfo"
#define CAMERASRC_MAX_IMAGE_BUFFER_PLANES 3
-#define USE_OPEN_CHK /*< Using open check with temporary file */
#define USE_SENSOR_MODE 1
+//#define USE_OPEN_CHK /*< Using open check with temporary file */
/*#define USE_SKIP_FRAME*/ /*< Skip frame toggle */
/*#define USE_IOCTL_DEBUG*/ /*< For debugging ioctl name, argument, address, etc */
/*#define USE_FRAME_COPY_BOUNDARY_CHECK*/ /*< Copy boundary checks occurs seg fault when overrun */