aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-07-27 13:46:45 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2014-07-27 13:46:45 +0200
commit58ad911e1efeca908e93eccb550e3615a6df5707 (patch)
treee67bcd200bd50a1768c29936d517a1e922beaa55
parent8708d94c1f74a81caf2a7d8d4a6d737581737dcd (diff)
v4l2-ctl/qv4l2: init mv_hor/vert_mode correctly.
Those fields were initialized to 0 instead of to TPG_MOVE_NONE. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/v4l2-ctl/vivid-tpg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/v4l2-ctl/vivid-tpg.c b/utils/v4l2-ctl/vivid-tpg.c
index d051eaff..457f6abf 100644
--- a/utils/v4l2-ctl/vivid-tpg.c
+++ b/utils/v4l2-ctl/vivid-tpg.c
@@ -126,6 +126,8 @@ void tpg_init(struct tpg_data *tpg, unsigned w, unsigned h)
tpg->contrast = 128;
tpg->saturation = 128;
tpg->hue = 0;
+ tpg->mv_hor_mode = TPG_MOVE_NONE;
+ tpg->mv_vert_mode = TPG_MOVE_NONE;
tpg->field = V4L2_FIELD_NONE;
tpg_s_fourcc(tpg, V4L2_PIX_FMT_RGB24);
tpg->colorspace = V4L2_COLORSPACE_SRGB;

Privacy Policy