diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-04-27 09:55:53 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-04-27 09:55:53 +0200 |
commit | 9c3ff6e8da0311ad7c2bd4617e018f6e573baabd (patch) | |
tree | 4e693cf7f3522142468d0463525fd7b2856bbceb /ringbuffer.c | |
parent | 65b9d4a97f3a00865f8d578635f8ac2947c62cbb (diff) | |
download | vdr-9c3ff6e8da0311ad7c2bd4617e018f6e573baabd.tar.gz vdr-9c3ff6e8da0311ad7c2bd4617e018f6e573baabd.tar.bz2 |
Setting the 'broken link' flag for GOPs during replay when necessary
Diffstat (limited to 'ringbuffer.c')
-rw-r--r-- | ringbuffer.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ringbuffer.c b/ringbuffer.c index 9eecbba1..6913c71f 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.14 2003/02/15 13:21:50 kls Exp $ + * $Id: ringbuffer.c 1.15 2003/04/27 09:54:32 kls Exp $ */ #include "ringbuffer.h" @@ -142,9 +142,9 @@ int cRingBufferLinear::Put(const uchar *Data, int Count) return Count; } -const uchar *cRingBufferLinear::Get(int &Count) +uchar *cRingBufferLinear::Get(int &Count) { - const uchar *p = NULL; + uchar *p = NULL; Lock(); if (getThreadPid < 0) getThreadPid = getpid(); @@ -224,7 +224,7 @@ cRingBufferFrame::~cRingBufferFrame() void cRingBufferFrame::Clear(void) { Lock(); - const cFrame *p; + cFrame *p; while ((p = Get()) != NULL) Drop(p); Unlock(); @@ -252,7 +252,7 @@ bool cRingBufferFrame::Put(cFrame *Frame) return false; } -const cFrame *cRingBufferFrame::Get(void) +cFrame *cRingBufferFrame::Get(void) { Lock(); cFrame *p = head ? head->next : NULL; @@ -260,13 +260,13 @@ const cFrame *cRingBufferFrame::Get(void) return p; } -void cRingBufferFrame::Delete(const cFrame *Frame) +void cRingBufferFrame::Delete(cFrame *Frame) { currentFill -= Frame->Count(); delete Frame; } -void cRingBufferFrame::Drop(const cFrame *Frame) +void cRingBufferFrame::Drop(cFrame *Frame) { Lock(); if (head) { |