[media] em28xx: Fix vidioc fmt vid cap v4l2 compliance
authorAlban Browaeys <alban.browaeys@gmail.com>
Tue, 16 Jul 2013 22:06:46 +0000 (19:06 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 26 Jul 2013 16:35:02 +0000 (13:35 -0300)
Set fmt.pix.priv to zero in vidioc_try_fmt_vid_cap.
Catched by v4l2-compliance.

Signed-off-by: Alban Browaeys <prahal@yahoo.com>
[hans.verkuil@cisco.com: dropping unnecessary change to g_fmt_vid_cap]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-video.c

index 1a577ed8ea0ca0163e9203e9db0a143ccd65a743..9d103344f34ab5e4e3267ca8fa08f58db1f5a741 100644 (file)
@@ -1008,6 +1008,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
        else
                f->fmt.pix.field = dev->interlaced ?
                           V4L2_FIELD_INTERLACED : V4L2_FIELD_TOP;
+       f->fmt.pix.priv = 0;
 
        return 0;
 }