From: Hans Verkuil <[email protected]>

Fix a v4l2-compliance problem: the priv field of v4l2_pix_format must be
cleared by drivers.

Signed-off-by: Hans Verkuil <[email protected]>
---
 drivers/media/parport/bw-qcam.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/media/parport/bw-qcam.c b/drivers/media/parport/bw-qcam.c
index 5b75a64..497b342 100644
--- a/drivers/media/parport/bw-qcam.c
+++ b/drivers/media/parport/bw-qcam.c
@@ -693,6 +693,7 @@ static int qcam_g_fmt_vid_cap(struct file *file, void *fh, 
struct v4l2_format *f
        pix->sizeimage = pix->width * pix->height;
        /* Just a guess */
        pix->colorspace = V4L2_COLORSPACE_SRGB;
+       pix->priv = 0;
        return 0;
 }
 
@@ -718,6 +719,7 @@ static int qcam_try_fmt_vid_cap(struct file *file, void 
*fh, struct v4l2_format
        pix->sizeimage = pix->width * pix->height;
        /* Just a guess */
        pix->colorspace = V4L2_COLORSPACE_SRGB;
+       pix->priv = 0;
        return 0;
 }
 
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to