summaryrefslogtreecommitdiff
path: root/ringbuffer.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <kls (at) cadsoft (dot) de>2007-11-18 18:00:00 +0100
committerKlaus Schmidinger <kls (at) cadsoft (dot) de>2007-11-18 18:00:00 +0100
commit29b2d48bb53df75f1cb978e72bc709a6658d6e5c (patch)
tree8b5b7527e98c59d2446ba5b2c6365a1d484fe988 /ringbuffer.h
parent182cd78af06cee95594307b792b8951153c4888e (diff)
downloadvdr-patch-lnbsharing-29b2d48bb53df75f1cb978e72bc709a6658d6e5c.tar.gz
vdr-patch-lnbsharing-29b2d48bb53df75f1cb978e72bc709a6658d6e5c.tar.bz2
Version 1.5.12vdr-1.5.12
- Fixed assembling PS1 packets in cTS2PES::instant_repack() (thanks to Reinhard Nissl). - Updated the Russian OSD texts (thanks to Oleg Roitburd). - Fixed handling small PES packets that caused subtitles to be displayed late in live mode (based on a patch from Reinhard Nissl). - Fixed stopping live subtitles when a player is attached to the device. - Fixed suddenly stopping subtitles in live mode.
Diffstat (limited to 'ringbuffer.h')
-rw-r--r--ringbuffer.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ringbuffer.h b/ringbuffer.h
index dba0e61..f6664cf 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.17 2005/12/10 10:54:51 kls Exp $
+ * $Id: ringbuffer.h 1.18 2007/11/17 13:49:34 kls Exp $
*/
#ifndef __RINGBUFFER_H
@@ -60,6 +60,13 @@ private:
int gotten;
uchar *buffer;
char *description;
+protected:
+ virtual int DataReady(const uchar *Data, int Count);
+ ///< By default a ring buffer has data ready as soon as there are at least
+ ///< 'margin' bytes available. A derived class can reimplement this function
+ ///< if it has other conditions that define when data is ready.
+ ///< The return value is either 0 if there is not yet enough data available,
+ ///< or the number of bytes from the beginning of Data that are "ready".
public:
cRingBufferLinear(int Size, int Margin = 0, bool Statistics = false, const char *Description = NULL);
///< Creates a linear ring buffer.