summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-04-15 09:39:55 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-04-15 09:39:55 +0200
commit1a160e7afeddd6a2479a40ee6110477093942707 (patch)
tree757f2ac9c91c8399c7f652ce37a70fbd8ebde495 /device.h
parent016e10c1b0d20b8c73b593afcaf492219b5a0064 (diff)
downloadvdr-1a160e7afeddd6a2479a40ee6110477093942707.tar.gz
vdr-1a160e7afeddd6a2479a40ee6110477093942707.tar.bz2
The function cCamSlot::Decrypt() can now also be called with Data == NULL
Diffstat (limited to 'device.h')
-rw-r--r--device.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/device.h b/device.h
index 7e3592b1..97d8ad91 100644
--- a/device.h
+++ b/device.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.h 4.5 2017/04/02 10:08:49 kls Exp $
+ * $Id: device.h 4.6 2017/04/14 09:59:20 kls Exp $
*/
#ifndef __DEVICE_H
@@ -846,13 +846,17 @@ private:
public:
cTSBuffer(int File, int Size, int CardIndex);
virtual ~cTSBuffer();
- uchar *Get(int *Available = NULL);
+ uchar *Get(int *Available = NULL, bool CheckAvailable = false);
///< Returns a pointer to the first TS packet in the buffer. If Available is given,
///< it will return the total number of consecutive bytes pointed to in the buffer.
///< It is guaranteed that the returned pointer points to a TS_SYNC_BYTE and that
///< there are at least TS_SIZE bytes in the buffer. Otherwise NULL will be
///< returned and the value in Available (if given) is undefined.
///< Each call to Get() returns a pointer to the next TS packet in the buffer.
+ ///< If CheckAvailable is true, the buffer will be checked whether it contains
+ ///< at least TS_SIZE bytes before trying to get any data from it. Otherwise, if
+ ///< the buffer is empty, this function will wait a little while for the buffer
+ ///< to be filled again.
void Skip(int Count);
///< If after a call to Get() more or less than TS_SIZE of the available data
///< has been processed, a call to Skip() with the number of processed bytes