aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
diff options
context:
space:
mode:
authorDafna Hirschfeld <dafna3@gmail.com>2019-03-30 14:33:39 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-03-31 13:03:55 +0200
commite76fa6d06686e53e98069afc0bcf215fbbfb664a (patch)
tree4f60cbbb1e2c13452018ba18ac6f25030ee57607 /utils/v4l2-ctl/v4l2-ctl-streaming.cpp
parent83c2d2470738b05a075ca2afc13d994343a83a3f (diff)
v4l2-ctl: declare hdr variable as const
declare the hdr param with 'const' in functions that use fwht header in order to set the fwht stateless params. Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/v4l2-ctl/v4l2-ctl-streaming.cpp')
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-streaming.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
index 85f97722..28bc8c68 100644
--- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
@@ -837,7 +837,7 @@ static int alloc_fwht_req(int media_fd, unsigned index)
return 0;
}
-static void set_fwht_req_by_idx(unsigned idx, struct fwht_cframe_hdr *hdr,
+static void set_fwht_req_by_idx(unsigned idx, const struct fwht_cframe_hdr *hdr,
__u64 last_bf_ts, __u64 ts)
{
struct v4l2_ctrl_fwht_params fwht_params;
@@ -857,7 +857,7 @@ static int get_fwht_req_by_ts(__u64 ts)
return -1;
}
-static bool set_fwht_req_by_fd(struct fwht_cframe_hdr *hdr,
+static bool set_fwht_req_by_fd(const struct fwht_cframe_hdr *hdr,
int req_fd, __u64 last_bf_ts, __u64 ts)
{
struct v4l2_ctrl_fwht_params fwht_params;
@@ -874,7 +874,7 @@ static bool set_fwht_req_by_fd(struct fwht_cframe_hdr *hdr,
return false;
}
-static int set_fwht_ext_ctrl(cv4l_fd &fd, struct fwht_cframe_hdr *hdr,
+static int set_fwht_ext_ctrl(cv4l_fd &fd, const struct fwht_cframe_hdr *hdr,
__u64 last_bf_ts, int req_fd)
{
v4l2_ext_controls controls;

Privacy Policy