diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-03 14:18:08 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-03 14:18:08 +0200 |
commit | bff17fb1d0e39583e44ba93ea214d7434ecef2ce (patch) | |
tree | df3c64f93c4a572feca8de742f2300bfa0f687ee /ringbuffer.c | |
parent | 1962940c39c1951bd107f63d2e071df58ba0b125 (diff) | |
download | vdr-bff17fb1d0e39583e44ba93ea214d7434ecef2ce.tar.gz vdr-bff17fb1d0e39583e44ba93ea214d7434ecef2ce.tar.bz2 |
Added support for replaying DVDs
Diffstat (limited to 'ringbuffer.c')
-rw-r--r-- | ringbuffer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ringbuffer.c b/ringbuffer.c index 8511a1c2..79ece885 100644 --- a/ringbuffer.c +++ b/ringbuffer.c @@ -7,7 +7,7 @@ * Parts of this file were inspired by the 'ringbuffy.c' from the * LinuxDVB driver (see linuxtv.org). * - * $Id: ringbuffer.c 1.2 2001/05/20 11:58:08 kls Exp $ + * $Id: ringbuffer.c 1.3 2001/08/02 13:48:38 kls Exp $ */ #include "ringbuffer.h" @@ -69,9 +69,8 @@ int cRingBuffer::Available(void) { mutex.Lock(); int diff = head - tail; - int cont = (diff >= 0) ? diff : size + diff; mutex.Unlock(); - return cont; + return (diff >= 0) ? diff : size + diff; } void cRingBuffer::Clear(void) |