From: Mauro Carvalho Chehab Date: Thu, 6 Sep 2007 23:12:10 +0000 (-0300) Subject: V4L/DVB (12795): tm6000: Fix buffering size X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=71e7cfae31e4eb25e127d034ec71922c661dc958;p=openwrt%2Fstaging%2Fblogic.git V4L/DVB (12795): tm6000: Fix buffering size At the first time an application were called, resolutions were wrong. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c index 3470a55a5796..65510d853814 100644 --- a/drivers/staging/tm6000/tm6000-video.c +++ b/drivers/staging/tm6000/tm6000-video.c @@ -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;