mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-04-04 08:51:57 +00:00
[media] v4l2-ctrls.c: set V4L2_CTRL_FLAG_MODIFY_LAYOUT for ROTATE
The rotate control will modify the layout by definition. Always set this flag. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
6df8be7631
commit
c0e681f5b0
@ -997,6 +997,10 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type,
|
|||||||
*min = 0;
|
*min = 0;
|
||||||
*max = *step = 1;
|
*max = *step = 1;
|
||||||
break;
|
break;
|
||||||
|
case V4L2_CID_ROTATE:
|
||||||
|
*type = V4L2_CTRL_TYPE_INTEGER;
|
||||||
|
*flags |= V4L2_CTRL_FLAG_MODIFY_LAYOUT;
|
||||||
|
break;
|
||||||
case V4L2_CID_MPEG_VIDEO_MV_H_SEARCH_RANGE:
|
case V4L2_CID_MPEG_VIDEO_MV_H_SEARCH_RANGE:
|
||||||
case V4L2_CID_MPEG_VIDEO_MV_V_SEARCH_RANGE:
|
case V4L2_CID_MPEG_VIDEO_MV_V_SEARCH_RANGE:
|
||||||
*type = V4L2_CTRL_TYPE_INTEGER;
|
*type = V4L2_CTRL_TYPE_INTEGER;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user