From 0bf93fa12e7a1a022bd71fea607061b8d6669751 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 11 Dec 2011 19:54:10 +0100 Subject: 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 --- videoout.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/videoout.c b/videoout.c index f8b6be2..ebeaefa 100644 --- a/videoout.c +++ b/videoout.c @@ -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; -- cgit v1.2.3