summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-06-19 08:58:14 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-06-19 08:58:14 +0200
commitb1737a8bcb3a259c9c57e76b818539191b96f045 (patch)
tree8a1274f7b89e37bf127a35af0bfbd0ec44afae5c /device.h
parent480afc6bc8636b10849a9e61b73151e81b794f93 (diff)
downloadvdr-b1737a8bcb3a259c9c57e76b818539191b96f045.tar.gz
vdr-b1737a8bcb3a259c9c57e76b818539191b96f045.tar.bz2
Added cDevice::Flush()
Diffstat (limited to 'device.h')
-rw-r--r--device.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/device.h b/device.h
index 6f0f70a7..10bca28c 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 1.43 2004/05/23 10:10:08 kls Exp $
+ * $Id: device.h 1.44 2004/06/19 08:50:37 kls Exp $
*/
#ifndef __DEVICE_H
@@ -373,6 +373,12 @@ public:
///< If TimeoutMs is not zero, the device will wait up to the given number
///< of milleseconds before returning in case there is no immediate
///< need for data.
+ virtual bool Flush(int TimeoutMs = 0);
+ ///< Returns true if the device's output buffers are empty, i. e. any
+ ///< data which was bufferd so far has been processed.
+ ///< If TimeoutMs is not zero, the device will wait up to the given
+ ///< number of milliseconds before returning in case there is still
+ ///< data in the buffers..
virtual int PlayVideo(const uchar *Data, int Length);
///< Actually plays the given data block as video. The data must be
///< part of a PES (Packetized Elementary Stream) which can contain