summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'device.c')
-rw-r--r--device.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/device.c b/device.c
index a028b8a6..c9a70173 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 3.4 2013/12/25 13:20:19 kls Exp $
+ * $Id: device.c 3.5 2013/12/28 12:56:24 kls Exp $
*/
#include "device.h"
@@ -1764,7 +1764,7 @@ void cTSBuffer::Action(void)
}
}
-uchar *cTSBuffer::Get(void)
+uchar *cTSBuffer::Get(int *Available)
{
int Count = 0;
if (delivered) {
@@ -1785,6 +1785,8 @@ uchar *cTSBuffer::Get(void)
return NULL;
}
delivered = true;
+ if (Available)
+ *Available = Count;
return p;
}
return NULL;