38 #define MAXRETRIES 20 // max. number of retries for a single TS packet 39 #define RETRYWAIT 5 // time (in ms) between two retries 49 if (
PlayTs(Data, Length) > 0)
54 esyslog(
"ERROR: TS packet not accepted in Transfer Mode");
static cDevice * receiverDevice
virtual void Activate(bool On)
static cDevice * ReceiverDevice(void)
bool AttachReceiver(cReceiver *Receiver)
Attaches the given receiver to this device.
void SetChannel(const cChannel *Channel)
Sets the Channel for which the PAT/PMT shall be generated.
static void SleepMs(int TimeoutMs)
Creates a cCondWait object and uses it to sleep for TimeoutMs milliseconds, immediately giving up the...
uchar * GetPmt(int &Index)
Returns a pointer to the Index'th TS packet of the PMT section.
virtual void Receive(uchar *Data, int Length)
This function is called from the cDevice we are attached to, and delivers one TS packet from the set ...
cPatPmtGenerator patPmtGenerator
cTransferControl(cDevice *ReceiverDevice, const cChannel *Channel)
int PlayTs(const uchar *Data, int Length, bool VideoOnly=false)
cTransfer(const cChannel *Channel)
The cDevice class is the base from which actual devices can be derived.
uchar * GetPat(void)
Returns a pointer to the PAT section, which consists of exactly one TS packet.