From de00cd0488e1d225056f0d546bee8c993ff0ad81 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Fri, 19 Oct 2007 20:36:51 +0200 Subject: v4l2-ctl: fix --get-sliced-vbi(-out)-cap. From: Hans Verkuil Wrong buffer type was set, causing EINVAL to be returned. Signed-off-by: Hans Verkuil --- v4l2-apps/util/v4l2-ctl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'v4l2-apps/util/v4l2-ctl.cpp') diff --git a/v4l2-apps/util/v4l2-ctl.cpp b/v4l2-apps/util/v4l2-ctl.cpp index 9c1035833..effe7775a 100644 --- a/v4l2-apps/util/v4l2-ctl.cpp +++ b/v4l2-apps/util/v4l2-ctl.cpp @@ -2159,7 +2159,7 @@ int main(int argc, char **argv) if (options[OptGetSlicedVbiCap]) { struct v4l2_sliced_vbi_cap cap; - cap.type = V4L2_BUF_TYPE_VBI_CAPTURE; + cap.type = V4L2_BUF_TYPE_SLICED_VBI_CAPTURE; if (doioctl(fd, VIDIOC_G_SLICED_VBI_CAP, &cap, "VIDIOC_G_SLICED_VBI_CAP") == 0) { print_sliced_vbi_cap(cap); } @@ -2168,7 +2168,7 @@ int main(int argc, char **argv) if (options[OptGetSlicedVbiOutCap]) { struct v4l2_sliced_vbi_cap cap; - cap.type = V4L2_BUF_TYPE_VBI_OUTPUT; + cap.type = V4L2_BUF_TYPE_SLICED_VBI_OUTPUT; if (doioctl(fd, VIDIOC_G_SLICED_VBI_CAP, &cap, "VIDIOC_G_SLICED_VBI_CAP") == 0) { print_sliced_vbi_cap(cap); } -- cgit v1.2.3