v4l2: add decoding for VIDIOC_S_CROP's arg

* v4l2.c (v4l2_ioctl): Add decoding for VIDIOC_S_CROP's arg.
This commit is contained in:
Philippe De Muyter 2015-05-20 17:50:21 +02:00 committed by Dmitry V. Levin
parent bd8dd776db
commit e459ba943e

11
v4l2.c
View File

@ -568,6 +568,17 @@ v4l2_ioctl(struct tcb *tcp, const unsigned int code, long arg)
return 1;
}
case VIDIOC_S_CROP: {
struct v4l2_crop c;
if (exiting(tcp) || umove(tcp, arg, &c) < 0)
return 0;
tprints(", {type=");
printxval(v4l2_buf_types, c.type, "V4L2_BUF_TYPE_???");
tprintf(", c=" FMT_RECT "}", ARGS_RECT(c.c));
return 1;
}
case VIDIOC_G_FBUF:
case VIDIOC_S_FBUF: {
struct v4l2_framebuffer b;