summaryrefslogtreecommitdiff
path: root/ringbuffer.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-01-19 15:43:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2003-01-19 15:43:58 +0100
commitcdcf28b051c71a84632384346bb7a2a481a95373 (patch)
tree81fff0617b64c3aeb98f99c71d875075536669ae /ringbuffer.h
parent413b22dc636dbd78f7acd0dd816cde933fe6a78d (diff)
downloadvdr-cdcf28b051c71a84632384346bb7a2a481a95373.tar.gz
vdr-cdcf28b051c71a84632384346bb7a2a481a95373.tar.bz2
Implemented non blocking file reader for cDvbPlayer
Diffstat (limited to 'ringbuffer.h')
-rw-r--r--ringbuffer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ringbuffer.h b/ringbuffer.h
index 660a08b0..f96143c9 100644
--- a/ringbuffer.h
+++ b/ringbuffer.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: ringbuffer.h 1.7 2002/08/04 10:27:30 kls Exp $
+ * $Id: ringbuffer.h 1.8 2003/01/19 15:03:00 kls Exp $
*/
#ifndef __RINGBUFFER_H
@@ -69,6 +69,9 @@ private:
int index;
public:
cFrame(const uchar *Data, int Count, eFrameType = ftUnknown, int Index = -1);
+ ///< Creates a new cFrame object.
+ ///< If Count is negative, the cFrame object will take ownership of the given
+ ///< Data. Otherwise it will allocate Count bytes of memory and copy Data.
~cFrame();
const uchar *Data(void) const { return data; }
int Count(void) const { return count; }