From 45f09525f434ffbc0a9a04026e4bd92f50a4736d Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Mon, 19 May 2014 11:51:06 +0200 Subject: [PATCH] meta-digi-dey: dey-examples-v4l2: The VIDIOC_G_FMT syscall needs a format type. Newer kernels (3.x) return an error if this is not the case. Signed-off-by: Alex Gonzalez --- .../recipes-digi/dey-examples/files/v4l2_test/v4l2_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-digi-dey/recipes-digi/dey-examples/files/v4l2_test/v4l2_common.c b/meta-digi-dey/recipes-digi/dey-examples/files/v4l2_test/v4l2_common.c index b5b24a9d1..937409102 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/files/v4l2_test/v4l2_common.c +++ b/meta-digi-dey/recipes-digi/dey-examples/files/v4l2_test/v4l2_common.c @@ -381,6 +381,7 @@ int v4l2_set_format_overlay(int fd, int top, int left, int height, int width) int ret = 0; /* Get the data format */ + format.type = V4L2_BUF_TYPE_VIDEO_OVERLAY; if ((ret = ioctl(fd, VIDIOC_G_FMT, &format)) < 0) { log("Get format failed with %d\n", ret); return ret;