diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-12-11 19:54:10 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-01-06 14:02:49 +0100 |
commit | 0bf93fa12e7a1a022bd71fea607061b8d6669751 (patch) | |
tree | 464c30d442ea6f6c3c917ec05c7c6848fc0afc5e | |
parent | b87bf06f10636ed31e4c40d536b4182cc77e9d46 (diff) |
videoout: Remove unneeded crop settings
Setting the crop rectangle on the video output device isn't needed
(especially as the code forgot to set crop->type to
V4L2_BUF_TYPE_VIDEO_OUTPUT anyway).
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | videoout.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -58,7 +58,6 @@ struct videoout *vo_init(const char *devname, { struct v4l2_pix_format pixfmt; struct v4l2_format fmt; - struct v4l2_rect crop; struct videoout *vo; int ret; @@ -77,17 +76,6 @@ struct videoout *vo_init(const char *devname, goto error; } - crop.left = 0; - crop.top = 0; - crop.width = width; - crop.height = height; - - ret = v4l2_set_crop(vo->dev, &crop); - if (ret < 0) { - perror("VIDIOC_S_CROP\n"); - goto error; - } - pixfmt.pixelformat = V4L2_PIX_FMT_YUYV; pixfmt.width = width; pixfmt.height = height; |