V4L/DVB (12795): tm6000: Fix buffering size
authorMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 6 Sep 2007 23:12:10 +0000 (20:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:39:41 +0000 (00:39 -0300)
At the first time an application were called, resolutions were wrong.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-video.c

index 3470a55a5796bd760579c1abf0d8ed2ebfe96b15..65510d853814255289326fc37a1148d6b67f10f2 100644 (file)
@@ -1102,6 +1102,10 @@ static int vidioc_s_std (struct file *file, void *priv, v4l2_std_id *norm)
        struct tm6000_core *dev = fh->dev;
 
        rc=tm6000_set_standard (dev, norm);
+
+       fh->width  = dev->width;
+       fh->height = dev->height;
+
        if (rc<0)
                return rc;