]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
[media] bttv: fill in fb->flags for VIDIOC_G_FBUF
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 6 Feb 2013 15:00:03 +0000 (12:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Mar 2013 17:04:56 +0000 (14:04 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/bt8xx/bttv-driver.c

index dbf1882147c7950357364597f7335349b9098995..cffa8b6683ea6633bcb004464a1d0a2b19e8c2ac 100644 (file)
@@ -2769,6 +2769,7 @@ static int bttv_g_fbuf(struct file *file, void *f,
 
        *fb = btv->fbuf;
        fb->capability = V4L2_FBUF_CAP_LIST_CLIPPING;
+       fb->flags = V4L2_FBUF_FLAG_PRIMARY;
        if (fh->ovfmt)
                fb->fmt.pixelformat  = fh->ovfmt->fourcc;
        return 0;