summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2007-09-07 00:12:10 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2007-09-07 00:12:10 +0100
commit01681d64356caa951bb9657635d753a4d133c560 (patch)
tree88e70b50998eb50d019d30baf9dec3bbe6358dad /linux/drivers
parent59c68e9fceff33b095c4be39eebb875aaa29c526 (diff)
downloadmediapointer-dvb-s2-01681d64356caa951bb9657635d753a4d133c560.tar.gz
mediapointer-dvb-s2-01681d64356caa951bb9657635d753a4d133c560.tar.bz2
tm6000: Fix buffering size
From: Mauro Carvalho Chehab <mchehab@infradead.org> At the first time an application were called, resolutions were wrong. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/staging/tm6000/tm6000-video.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/staging/tm6000/tm6000-video.c b/linux/drivers/staging/tm6000/tm6000-video.c
index e304120f8..e24077fb5 100644
--- a/linux/drivers/staging/tm6000/tm6000-video.c
+++ b/linux/drivers/staging/tm6000/tm6000-video.c
@@ -1174,6 +1174,12 @@ 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);
+
+#if 1
+ fh->width = dev->width;
+ fh->height = dev->height;
+#endif
+
if (rc<0)
return rc;