diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-17 08:52:30 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-17 08:52:30 -0300 |
commit | 33f52debf9c5638b0eded7614e77b57430a0a3fb (patch) | |
tree | 5419c831043dfee9b7ea9b5f5bb04baf427ef8a3 /linux/drivers/media/video/vivi.c | |
parent | f3557e8748785f4d92bcfad80becf953561bb2e7 (diff) | |
download | mediapointer-dvb-s2-33f52debf9c5638b0eded7614e77b57430a0a3fb.tar.gz mediapointer-dvb-s2-33f52debf9c5638b0eded7614e77b57430a0a3fb.tar.bz2 |
Fix: videodev.c were cleaning the pointer, not the values
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/vivi.c')
-rw-r--r-- | linux/drivers/media/video/vivi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/vivi.c b/linux/drivers/media/video/vivi.c index fbd80cf2f..5fd42153f 100644 --- a/linux/drivers/media/video/vivi.c +++ b/linux/drivers/media/video/vivi.c @@ -1081,7 +1081,7 @@ static int vidiocgmbuf (struct file *file, void *priv, struct video_mbuf *mbuf) ret = videobuf_reqbufs(q,&req); if (ret < 0) return (ret); - memset(mbuf,0,sizeof(*mbuf)); + mbuf->frames = req.count; mbuf->size = 0; for (i = 0; i < mbuf->frames; i++) { |