From: Philippe De Muyter Date: Wed, 20 May 2015 15:50:21 +0000 (+0200) Subject: v4l2: add decoding for VIDIOC_S_CROP's arg X-Git-Tag: v4.11~514 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e459ba943e5b64dd7a2f80416bf04458b3c6f0ab;p=strace v4l2: add decoding for VIDIOC_S_CROP's arg * v4l2.c (v4l2_ioctl): Add decoding for VIDIOC_S_CROP's arg. --- diff --git a/v4l2.c b/v4l2.c index f04d1f10..6377717b 100644 --- a/v4l2.c +++ b/v4l2.c @@ -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;