We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 27c5008 + c5ea5f7 commit dc09a8cCopy full SHA for dc09a8c
v4l2capture.c
@@ -483,7 +483,7 @@ static PyObject *Video_device_get_exposure_auto(Video_device *self)
483
struct v4l2_control ctrl;
484
CLEAR(ctrl);
485
ctrl.id = V4L2_CID_EXPOSURE_AUTO;
486
- if(my_ioctl(self->fd, VIDIOC_S_CTRL, &ctrl)){
+ if(my_ioctl(self->fd, VIDIOC_G_CTRL, &ctrl)){
487
return NULL;
488
}
489
return Py_BuildValue("i",ctrl.value);
@@ -520,7 +520,7 @@ static PyObject *Video_device_get_focus_auto(Video_device *self)
520
521
522
ctrl.id = V4L2_CID_FOCUS_AUTO;
523
524
525
526
0 commit comments