From 8976ebcec5ca1ac03c54209b7cc12e9d14915c6b Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 4 Jan 2004 12:30:00 +0100 Subject: Implemented automatic PID switching and channel detection --- pat.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pat.h') diff --git a/pat.h b/pat.h index df30c104..dd1a1fe8 100644 --- a/pat.h +++ b/pat.h @@ -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); -- cgit v1.2.3