[mythtv] latest ringbuffer.cpp change causes infinite loop

Isaac Richards ijr at case.edu
Sat Apr 9 19:14:16 UTC 2005


On Saturday 09 April 2005 02:06 pm, Andy McMullan wrote:
> Hi
>
> I get an infinite loop in RingBuffer::Seek in RingBuffer.cpp (lines 1295-6)
> with the latest cvs:
>
> while (readpos > filesize)
> readpos -= filesize;
>
> The infinite loop occurs because filesize is zero and readpos is non-zero.
> As far as I can tell, when the first RingBuffer constructor is used,
> filesize is always zero. And the first RingBuffer constructor seems to be
> the one used when I play back a recording.

Right - the whiles were moved out one level too many.  Current CVS should be 
fixed, but please verify.

Isaac


More information about the mythtv-dev mailing list