V4L/DVB (3484): Make dvb_ringbuffer compatible to dmxdev_buffer
authorAndreas Oberritter <obi@linuxtv.org>
Mon, 13 Mar 2006 16:14:34 +0000 (13:14 -0300)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 21 Mar 2006 16:53:17 +0000 (08:53 -0800)
commit9d9d6baeca6f9174b8e7fd219a62a8fa09d61cc7
treed98ceaf625ca9b16536b641476c9fc93177bd79b
parentfc34f165317403444d254a27bc356dc5de0bbc3d
V4L/DVB (3484): Make dvb_ringbuffer compatible to dmxdev_buffer

Added variable 'error' to struct dvb_ringbuffer, which is set to zero on
init() and flush(). Also reset read an write pointers to zero on flush()
to get less fragmented data.

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-core/dvb_ringbuffer.c
drivers/media/dvb/dvb-core/dvb_ringbuffer.h