summaryrefslogtreecommitdiff
path: root/remux.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-08-07 10:29:36 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-08-07 10:29:36 +0200
commitda0030deff4b0086edbd25d784fc0fe309cd4256 (patch)
tree6d007d61e51cce092092c99363dd4215f7ac15e7 /remux.h
parente2bb5d3898b7147301a943323adeeb04227a207a (diff)
downloadvdr-da0030deff4b0086edbd25d784fc0fe309cd4256.tar.gz
vdr-da0030deff4b0086edbd25d784fc0fe309cd4256.tar.bz2
Added cRemux::SetTimeouts() for better use of cRemux in a single thread
Diffstat (limited to 'remux.h')
-rw-r--r--remux.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/remux.h b/remux.h
index fef5980e..0cd570e0 100644
--- a/remux.h
+++ b/remux.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remux.h 1.13 2005/01/16 13:15:17 kls Exp $
+ * $Id: remux.h 1.14 2005/08/07 10:28:07 kls Exp $
*/
#ifndef __REMUX_H
@@ -47,6 +47,12 @@ public:
///< PID). If ExitOnFailure is true, the remuxer will initiate an "emergency
///< exit" in case of problems with the data stream.
~cRemux();
+ void SetTimeouts(int PutTimeout, int GetTimeout) { resultBuffer->SetTimeouts(PutTimeout, GetTimeout); }
+ ///< By default cRemux assumes that Put() and Get() are called from different
+ ///< threads, and uses a timeout in the Get() function in case there is no
+ ///< data available. SetTimeouts() can be used to modify these timeouts.
+ ///< Especially if Put() and Get() are called from the same thread, setting
+ ///< both timeouts to 0 is recommended.
int Put(const uchar *Data, int Count);
///< Puts at most Count bytes of Data into the remuxer.
///< \return Returns the number of bytes actually consumed from Data.