If camera sensor cannot be detected return YUV
This commit is contained in:
parent
def0fde707
commit
f5f3f2663a
1 changed files with 3 additions and 3 deletions
|
@ -2994,8 +2994,8 @@ int V4L2CameraDevice::getSensorType()
|
||||||
|
|
||||||
if (-1 == ioctl(mCameraFd, VIDIOC_QUERYCTRL, &qc_ctrl))
|
if (-1 == ioctl(mCameraFd, VIDIOC_QUERYCTRL, &qc_ctrl))
|
||||||
{
|
{
|
||||||
LOGE("query sensor type ctrl failed");
|
LOGE("query sensor type ctrl failed, returning V4L2_SENSOR_TYPE_YUV");
|
||||||
return -1;
|
return V4L2_SENSOR_TYPE_YUV;
|
||||||
}
|
}
|
||||||
ret = ioctl(mCameraFd, VIDIOC_G_CTRL, &ctrl);
|
ret = ioctl(mCameraFd, VIDIOC_G_CTRL, &ctrl);
|
||||||
return ctrl.value;
|
return ctrl.value;
|
||||||
|
|
Loading…
Reference in a new issue