summaryrefslogtreecommitdiff
path: root/ringbuffer.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2016-12-22 11:33:12 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2016-12-22 11:33:12 +0100
commitbe4cdcf17027e2f6f5482fb13d273693145d11a1 (patch)
treeaa3877153e4640746b6833dae1a0891928907065 /ringbuffer.h
parentfd85701a84c976318afbb69e13d96c1ec44112fc (diff)
downloadvdr-be4cdcf17027e2f6f5482fb13d273693145d11a1.tar.gz
vdr-be4cdcf17027e2f6f5482fb13d273693145d11a1.tar.bz2
Improved handling frame numbers to have a smoother progress display during replay of recordings with B-frames
Diffstat (limited to 'ringbuffer.h')
-rw-r--r--ringbuffer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ringbuffer.h b/ringbuffer.h
index 1fff611c..9699bbc8 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 2.5 2013/02/16 15:20:37 kls Exp $
+ * $Id: ringbuffer.h 4.1 2016/12/22 10:26:13 kls Exp $
*/
#ifndef __RINGBUFFER_H
@@ -113,8 +113,9 @@ private:
eFrameType type;
int index;
uint32_t pts;
+ bool independent;
public:
- cFrame(const uchar *Data, int Count, eFrameType = ftUnknown, int Index = -1, uint32_t Pts = 0);
+ cFrame(const uchar *Data, int Count, eFrameType = ftUnknown, int Index = -1, uint32_t Pts = 0, bool independent = false);
///< 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.
@@ -124,6 +125,7 @@ public:
eFrameType Type(void) const { return type; }
int Index(void) const { return index; }
uint32_t Pts(void) const { return pts; }
+ bool Independent(void) const { return independent; }
};
class cRingBufferFrame : public cRingBuffer {