summaryrefslogtreecommitdiff
path: root/remux.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-01-24 13:47:46 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-01-24 13:47:46 +0100
commit85e34776ff520d001cb6e0236a3308f143f093f0 (patch)
treebad9092b93dde57bf2b95458c434da61f743b88a /remux.h
parentf311ce508aeb1aa5cc4254117bc2c30800a40fa4 (diff)
downloadvdr-85e34776ff520d001cb6e0236a3308f143f093f0.tar.gz
vdr-85e34776ff520d001cb6e0236a3308f143f093f0.tar.bz2
The PAT/PMT is now only processed if its version changes
Diffstat (limited to 'remux.h')
-rw-r--r--remux.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/remux.h b/remux.h
index b65da73b..8cb1223a 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 2.6 2009/01/23 16:44:46 kls Exp $
+ * $Id: remux.h 2.7 2009/01/24 13:38:10 kls Exp $
*/
#ifndef __REMUX_H
@@ -192,6 +192,8 @@ class cPatPmtParser {
private:
uchar pmt[MAX_SECTION_SIZE];
int pmtSize;
+ int patVersion;
+ int pmtVersion;
int pmtPid;
int vpid;
int vtype;
@@ -199,6 +201,9 @@ protected:
int SectionLength(const uchar *Data, int Length) { return (Length >= 3) ? ((int(Data[1]) & 0x0F) << 8)| Data[2] : 0; }
public:
cPatPmtParser(void);
+ void Reset(void);
+ ///< Resets the parser. This function must be called whenever a new
+ ///< stream is parsed.
void ParsePat(const uchar *Data, int Length);
///< Parses the PAT data from the single TS packet in Data.
///< Length is always TS_SIZE.