mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
Fix video/video.c:1458:52: error: implicit conversion from enumeration type 'enum v4l2_buf_type' to different enumeration type 'imgsensor_stream_type_t' (aka 'enum imgsensor_stream_type_e') [-Werror,-Wenum-conversion]
ret = g_video_sensor_ops->validate_frame_setting(type, nr_fmt, sf, &si);
~~~~~~~~~~~~~~~~~~ ^~~~
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
3e3364d1a9
commit
a98949d0f6
@@ -1456,7 +1456,9 @@ static int validate_frame_setting(enum v4l2_buf_type type,
|
|||||||
convert_to_imgsensorinterval(interval, &si);
|
convert_to_imgsensorinterval(interval, &si);
|
||||||
|
|
||||||
ret = g_video_sensor_ops->validate_frame_setting(
|
ret = g_video_sensor_ops->validate_frame_setting(
|
||||||
type == V4L2_BUF_TYPE_STILL_CAPTURE, nr_fmt, sf, &si);
|
type == V4L2_BUF_TYPE_VIDEO_CAPTURE ?
|
||||||
|
IMGSENSOR_STREAM_TYPE_VIDEO : IMGSENSOR_STREAM_TYPE_STILL,
|
||||||
|
nr_fmt, sf, &si);
|
||||||
if (ret != OK)
|
if (ret != OK)
|
||||||
{
|
{
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user