diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-10-19 20:36:51 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2007-10-19 20:36:51 +0200 |
commit | de00cd0488e1d225056f0d546bee8c993ff0ad81 (patch) | |
tree | 0f387672ecde5e195e87ee4efe73b426364af3f1 /v4l2-apps/util/v4l2-ctl.cpp | |
parent | 7c3206d14cea8962f79628f11cd3f582f2b9644d (diff) | |
download | mediapointer-dvb-s2-de00cd0488e1d225056f0d546bee8c993ff0ad81.tar.gz mediapointer-dvb-s2-de00cd0488e1d225056f0d546bee8c993ff0ad81.tar.bz2 |
v4l2-ctl: fix --get-sliced-vbi(-out)-cap.
From: Hans Verkuil <hverkuil@xs4all.nl>
Wrong buffer type was set, causing EINVAL to be returned.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'v4l2-apps/util/v4l2-ctl.cpp')
-rw-r--r-- | v4l2-apps/util/v4l2-ctl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |