Commit 0c53b29f authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

msv4l2.c: well, use memset since gcc and clang are not happy with each other in any case...

parent 4500d596
......@@ -343,9 +343,11 @@ MSPixFmt msv4l2_pick_best_format_basic(int fd, const V4L2FormatDescription* form
static int set_camera_feature(V4l2State *s, unsigned int ctl_id, int value, const char *feature_name){
struct v4l2_ext_control ctl={0};
struct v4l2_ext_controls ctls={{0}};
struct v4l2_ext_controls ctls;
struct v4l2_queryctrl queryctrl={0};
memset(&ctls, 0, sizeof(ctls)); = ctl_id;
if (ioctl (s->fd, VIDIOC_QUERYCTRL, &queryctrl)!=0) {
ms_warning("%s not supported: %s",feature_name,strerror(errno));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment