Public Member Functions
|cLiveSubtitle (int SPid)|
Protected Member Functions
|virtual void||Activate (bool On)|
|virtual void||Receive (uchar *Data, int Length)|
|virtual void||Action (void)|
This function is called just before the cReceiver gets attached to (On == true) or detached from (On == false) a cDevice. It can be used to do things like starting/stopping a thread. It is guaranteed that Receive() will not be called before Activate(true).
Reimplemented from cReceiver.
|void cLiveSubtitle::Receive||(||uchar *||Data,|
This function is called from the cDevice we are attached to, and delivers one TS packet from the set of PIDs the cReceiver has requested. The data packet must be accepted immediately, and the call must return as soon as possible, without any unnecessary delay. Each TS packet will be delivered only ONCE, so the cReceiver must make sure that it will be able to buffer the data if necessary.
References cRemux::Del(), cRingBufferLinear::Del(), cRemux::Get(), cRingBufferLinear::Get(), cDevice::PlaySubtitle(), cDevice::PrimaryDevice(), cRemux::Put(), remux, ringBuffer, and cThread::Running().