diff options
| author | Mauro Carvalho Chehab <[email protected]> | 2007-09-06 20:12:10 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2010-05-18 00:39:41 -0300 |
| commit | 71e7cfae31e4eb25e127d034ec71922c661dc958 (patch) | |
| tree | ff897773808439a428a1c9cfba62aa88806a9eb9 | |
| parent | 4475c0444303842743049c420f41de04907e44d9 (diff) | |
V4L/DVB (12795): tm6000: Fix buffering size
At the first time an application were called, resolutions were wrong.
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
| -rw-r--r-- | drivers/staging/tm6000/tm6000-video.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |