58 if (
PlayTs(Data, Length) > 0)
static void SleepMs(int TimeoutMs)
Creates a cCondWait object and uses it to sleep for TimeoutMs milliseconds, immediately giving up the...
void SetPlayer(cPlayer *Player)
cControl(cPlayer *Player, bool Hidden=false)
bool AttachReceiver(cReceiver *Receiver)
Attaches the given receiver to this device.
uchar * GetPmt(int &Index)
Returns a pointer to the Index'th TS packet of the PMT section.
void SetChannel(const cChannel *Channel)
Sets the Channel for which the PAT/PMT shall be generated.
uchar * GetPat(void)
Returns a pointer to the PAT section, which consists of exactly one TS packet.
int PlayTs(const uchar *Data, int Length, bool VideoOnly=false)
cReceiver(const cChannel *Channel=NULL, int Priority=MINPRIORITY)
Creates a new receiver for the given Channel with the given Priority.
static cDevice * ReceiverDevice(void)
cTransferControl(cDevice *ReceiverDevice, const cChannel *Channel)
static std::atomic< cDevice * > receiverDevice
virtual void Receive(const uchar *Data, int Length) override
This function is called from the cDevice we are attached to, and delivers one TS packet from the set ...
cTransfer(const cChannel *Channel)
virtual ~cTransfer() override
virtual void Activate(bool On) override
This function is called just before the cReceiver gets attached to (On == true) and right after it ge...
std::atomic< bool > activated
cPatPmtGenerator patPmtGenerator