diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2016-12-22 11:33:12 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2016-12-22 11:33:12 +0100 |
commit | be4cdcf17027e2f6f5482fb13d273693145d11a1 (patch) | |
tree | aa3877153e4640746b6833dae1a0891928907065 /ringbuffer.c | |
parent | fd85701a84c976318afbb69e13d96c1ec44112fc (diff) | |
download | vdr-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.c')
-rw-r--r-- | ringbuffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ringbuffer.c b/ringbuffer.c index abe78990..d33a4719 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 2.5 2012/09/22 11:26:49 kls Exp $ + * $Id: ringbuffer.c 4.1 2016/12/22 10:26:13 kls Exp $ */ #include "ringbuffer.h" @@ -390,12 +390,13 @@ void cRingBufferLinear::Del(int Count) // --- cFrame ---------------------------------------------------------------- -cFrame::cFrame(const uchar *Data, int Count, eFrameType Type, int Index, uint32_t Pts) +cFrame::cFrame(const uchar *Data, int Count, eFrameType Type, int Index, uint32_t Pts, bool Independent) { count = abs(Count); type = Type; index = Index; pts = Pts; + independent = Type == ftAudio ? true : Independent; if (Count < 0) data = (uchar *)Data; else { |