#include <unistd.h>
#include <fcntl.h>
-class eDVBServicePMTHandler;
+class eDVBCAService;
typedef std::map<eServiceReferenceDVB, eDVBCAService*> CAServiceMap;
class eDVBCAService: public Object
{
eServiceReferenceDVB m_service;
- uint8_t m_used_demux[10];
+ uint8_t m_used_demux[32];
unsigned int m_prev_build_hash;
int m_sock, m_clilen;
eDVBCAService();
~eDVBCAService();
public:
- static RESULT register_service( const eServiceReferenceDVB &ref, int demux_num, eDVBCAService *&caservice );
- static RESULT unregister_service( const eServiceReferenceDVB &ref, int demux_num, eTable<ProgramMapSection> *ptr );
+ static RESULT register_service( const eServiceReferenceDVB &ref, int demux_nums[2], eDVBCAService *&caservice );
+ static RESULT unregister_service( const eServiceReferenceDVB &ref, int demux_nums[2], eTable<ProgramMapSection> *ptr );
void buildCAPMT(eTable<ProgramMapSection> *ptr);
};
void PATready(int error);
int m_use_decode_demux;
+ uint8_t m_decode_demux_num;
public:
eDVBServicePMTHandler();
eventNewProgramInfo, // we just received a PMT
eventTuned, // a channel was sucessfully (re-)tuned in, you may start additional filters now
+ eventSOF, // seek pre start
eventEOF, // a file playback did end
};
// ca info
int pcrPid;
int pmtPid;
+ int textPid;
bool isCrypted;
};
int getPMT(ePtr<eTable<ProgramMapSection> > &ptr) { return m_PMT.getCurrent(ptr); }
int getChannel(eUsePtr<iDVBChannel> &channel);
- int tune(eServiceReferenceDVB &ref, int use_decode_demux);
+ int tune(eServiceReferenceDVB &ref, int use_decode_demux, eCueSheet *sg=0);
void free();
};