diff options
author | Maxim Levitsky <maximlevitsky@gmail.com> | 2007-10-02 09:03:39 -0300 |
---|---|---|
committer | Maxim Levitsky <maximlevitsky@gmail.com> | 2007-10-02 09:03:39 -0300 |
commit | 4e2e1d4d10a376955015d8f2c77351de4f0f04a5 (patch) | |
tree | 823a42dd417154da74ec72fd1b55a8a14d7e1171 /linux/drivers/media/video | |
parent | c5b6bc0a17723e648b46cb624954573e91591095 (diff) | |
download | mediapointer-dvb-s2-4e2e1d4d10a376955015d8f2c77351de4f0f04a5.tar.gz mediapointer-dvb-s2-4e2e1d4d10a376955015d8f2c77351de4f0f04a5.tar.bz2 |
Buf: fix typo that caused data loss when readng streams from device
If videobuf_read_stream reads two or more buffers it was overwriting the first one
Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981
Reviewed-by: Ricardo Cerqueira <v4l@cerqueira.org>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/videobuf-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/videobuf-core.c b/linux/drivers/media/video/videobuf-core.c index 4edb65114..5066c2d88 100644 --- a/linux/drivers/media/video/videobuf-core.c +++ b/linux/drivers/media/video/videobuf-core.c @@ -772,7 +772,7 @@ ssize_t videobuf_read_stream(struct videobuf_queue *q, } if (q->read_buf->state == STATE_DONE) { - rc = CALL (q,copy_stream, q, data, count, + rc = CALL (q,copy_stream, q, data + retval, count, retval, vbihack, nonblocking); if (rc < 0) { retval = rc; |