[linux-dvb] [PATCH] 1/3: BUG FIX in dvb_ringbuffer_flush
Andrea
mariofutire at googlemail.com
Sun Apr 13 11:30:16 CEST 2008
Andrea wrote:
> linux-dvb-request at linuxtv.org wrote:
> I've added a new function in the ringbuffer that resets the pointers to
> 0 and clears the error flag.
> There might be some more factoring and one could move into that function
> 2 more lines
>
> buf->data = NULL;
> buf->size = size;
> dvb_ringbuffer_reset(buf);
I've just added a comment to patch 1/3.
I post it here again.
This patch fixes the bug in DMX_SET_BUFFER_SIZE for the demux.
Basically it resets read and write pointers to 0 in case they are beyond the new size of the buffer.
In the next patch (2/3) I rewrite this function to behave the same as the new DMX_SET_BUFFER_SIZE
for the dvr.
I thought it is a good idea for the 2 very similar ioctl to be implemented in the same way.
Andrea
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.1
Url: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20080413/1c737e60/attachment.txt
More information about the linux-dvb
mailing list