diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-02-18 11:30:38 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2007-02-18 11:30:38 +0100 |
commit | d9a2475c496d017cf05081a0bca4de90e2ea1623 (patch) | |
tree | 3de55ed238d90bb54f2aca0c8b9a9bb537f803f8 /v4l2-apps/util/v4l2-ctl.cpp | |
parent | eaee33d833ac7366b9ad8a90256b9206b80374d0 (diff) | |
download | mediapointer-dvb-s2-d9a2475c496d017cf05081a0bca4de90e2ea1623.tar.gz mediapointer-dvb-s2-d9a2475c496d017cf05081a0bca4de90e2ea1623.tar.bz2 |
Use strtol instead of atol to parse the value for a control.
From: Hans Verkuil <hverkuil@xs4all.nl>
Setting the VIDEO_MUTE control works much better if you can enter a hexadecimal
value.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/v4l2-apps/util/v4l2-ctl.cpp b/v4l2-apps/util/v4l2-ctl.cpp index 9229732ac..11af185f7 100644 --- a/v4l2-apps/util/v4l2-ctl.cpp +++ b/v4l2-apps/util/v4l2-ctl.cpp @@ -1450,7 +1450,7 @@ int main(int argc, char **argv) struct v4l2_ext_control ctrl = { 0 }; ctrl.id = ctrl_str2id[iter->first]; - ctrl.value = atol(iter->second.c_str()); + ctrl.value = strtol(iter->second.c_str(), NULL, 0); if (V4L2_CTRL_ID2CLASS(ctrl.id) == V4L2_CTRL_CLASS_MPEG) mpeg_ctrls.push_back(ctrl); else |