diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-22 23:55:10 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-22 23:55:10 -0300 |
commit | 485c0289f2edf51c7e7f687539af039d5122d213 (patch) | |
tree | 7ccbad44bdd5e9274092a581e34370618518cb98 /linux | |
parent | 28e3a27310e4ad865d4d4ff05c8af715bdb3f138 (diff) | |
download | mediapointer-dvb-s2-485c0289f2edf51c7e7f687539af039d5122d213.tar.gz mediapointer-dvb-s2-485c0289f2edf51c7e7f687539af039d5122d213.tar.bz2 |
Set the length of the v4l2 buffer to the length of the mapped memory.
From: Luc Saillard <luc@saillard.org>
This should fix the problem with amsn.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/pwc/pwc-v4l.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/pwc/pwc-v4l.c b/linux/drivers/media/video/pwc/pwc-v4l.c index e20251d05..32fbe1ae6 100644 --- a/linux/drivers/media/video/pwc/pwc-v4l.c +++ b/linux/drivers/media/video/pwc/pwc-v4l.c @@ -1168,7 +1168,7 @@ int pwc_video_do_ioctl(struct inode *inode, struct file *file, buf->sequence = 0; buf->memory = V4L2_MEMORY_MMAP; buf->m.offset = pdev->fill_image * pdev->len_per_image; - buf->length = buf->bytesused; + buf->length = pdev->len_per_image; pwc_next_image(pdev); PWC_DEBUG_IOCTL("VIDIOC_DQBUF: buf->index=%d\n",buf->index); |