Beispiel #1
0
cReceiver::cReceiver(tChannelID ChannelID, int Priority, int Pid, const int *Pids1, const int *Pids2, const int *Pids3)
{
  device = NULL;
  channelID = ChannelID;
  priority = Priority;
  numPids = 0;
  AddPid(Pid);
  AddPids(Pids1);
  AddPids(Pids2);
  AddPids(Pids3);
}
Beispiel #2
0
bool cReceiver::SetPids(const cChannel *Channel)
{
  numPids = 0;
  if (Channel) {
     channelID = Channel->GetChannelID();
     return AddPid(Channel->Vpid()) &&
            (Channel->Ppid() == Channel->Vpid() || AddPid(Channel->Ppid())) &&
            AddPids(Channel->Apids()) &&
            AddPids(Channel->Dpids()) &&
            AddPids(Channel->Spids());
     }
return true;
}
Beispiel #3
0
cLiveReceiver::cLiveReceiver(cLiveStreamer *Streamer, const cChannel *Channel, int Priority, const int *Pids)
 : cReceiver(Channel, Priority)
 , m_Streamer(Streamer)
{
  SetPids(NULL);
  AddPids(Pids);
  DEBUGLOG("Starting live receiver");
}
Beispiel #4
0
bool cReceiver::SetPids(const cChannel *Channel)
{
  numPids = 0;
  if (Channel) {
     channelID = Channel->GetChannelID();
     return AddPid(Channel->Vpid()) &&
            (Channel->Ppid() == Channel->Vpid() || AddPid(Channel->Ppid())) &&
            AddPids(Channel->Apids()) &&
            AddPids(Channel->Dpids()) &&
#ifdef USE_TTXTSUBS
            AddPids(Channel->Spids()) &&
            (!Setup.SupportTeletext || AddPid(Channel->Tpid()));
#else
            AddPids(Channel->Spids());
#endif /* TTXTSUBS */
     }
  return true;
}