diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-04 12:30:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-04 12:30:00 +0100 |
commit | 8976ebcec5ca1ac03c54209b7cc12e9d14915c6b (patch) | |
tree | 8562202f489ee585c1252b2cb4a9e61b3e200efe /pat.h | |
parent | 3a1058fe1fca6d10cea42786aa54abf3d0bd0b94 (diff) | |
download | vdr-8976ebcec5ca1ac03c54209b7cc12e9d14915c6b.tar.gz vdr-8976ebcec5ca1ac03c54209b7cc12e9d14915c6b.tar.bz2 |
Implemented automatic PID switching and channel detection
Diffstat (limited to 'pat.h')
-rw-r--r-- | pat.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -4,25 +4,30 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: pat.h 1.2 2003/12/24 10:08:22 kls Exp $ + * $Id: pat.h 1.3 2004/01/03 13:47:54 kls Exp $ */ #ifndef __PAT_H #define __PAT_H #include "filter.h" -#include "thread.h" + +#define MAXPMTENTRIES 64 class cPatFilter : public cFilter { private: time_t lastPmtScan; int pmtIndex; int pmtPid; + int pmtVersion[MAXPMTENTRIES]; + int numPmtEntries; + bool PmtVersionChanged(int PmtPid, int Version); protected: virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length); public: cPatFilter(void); virtual void SetStatus(bool On); + void Trigger(void); }; int GetCaDescriptors(int Source, int Transponder, int ServiceId, const unsigned short *CaSystemIds, int BufSize, uchar *Data, bool &StreamFlag); |