diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-06-26 07:55:27 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2006-06-26 07:55:27 +0200 |
commit | 348845609182f6fa1772961bb84b60ee134ddf6b (patch) | |
tree | 80bb5ad77cf8f57f1a7c55b31d8baeca40afafaa | |
parent | 494ddd8861370561652cc9371b774a5a5d3bed90 (diff) | |
download | mediapointer-dvb-s2-348845609182f6fa1772961bb84b60ee134ddf6b.tar.gz mediapointer-dvb-s2-348845609182f6fa1772961bb84b60ee134ddf6b.tar.bz2 |
Clear v4l2_tuner struct, fixes VIDIOC_S_FREQUENCY.
From: Hans Verkuil <hverkuil@xs4all.nl>
Struct v4l2_tuner was left uninitialized in v4l2-ctl, which caused VIDIOC_S_FREQUENCY
to fail.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
-rw-r--r-- | test/v4l2-ctl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/v4l2-ctl.cpp b/test/v4l2-ctl.cpp index 9604dcc96..6e044e563 100644 --- a/test/v4l2-ctl.cpp +++ b/test/v4l2-ctl.cpp @@ -599,6 +599,7 @@ static int doioctl(int fd, int request, void *parm, const char *name) if (!option_verbose) return ioctl(fd, request, parm); retVal = ioctl(fd, request, parm); + printf("%s: ", name); if (retVal < 0) printf("failed: %s\n", strerror(errno)); else @@ -673,7 +674,7 @@ int main(int argc, char **argv) /* command args */ char ch, *device = strdup("/dev/video0"); /* -d device */ struct v4l2_format vfmt; /* set_format/get_format */ - struct v4l2_tuner tuner; /* set_tuner/get_tuner */ + struct v4l2_tuner tuner = { 0 };/* set_tuner/get_tuner */ struct v4l2_capability vcap; /* list_cap */ struct v4l2_input vin; /* list_inputs */ struct v4l2_output vout; /* list_outputs */ |