19#define dbgsdt(a...) if (DebugSdt) fprintf(stderr, a)
92 bool ChannelsModified =
false;
93 bool TriggerPat =
false;
122 sd->
serviceName.
getText(NameBuf, ShortNameBuf,
sizeof(NameBuf),
sizeof(ShortNameBuf));
128 char *p = strchr(pn,
'>');
135 for (
char *p = ShortNameBuf; *p; p++) {
143 if (
Setup.UpdateChannels == 1 ||
Setup.UpdateChannels >= 3)
144 ChannelsModified |=
Channel->SetName(pn, ps, pp);
151 else if (*pn &&
Setup.UpdateChannels >= 4) {
155 ChannelsModified =
true;
180 if (!link &&
Setup.UpdateChannels >= 4) {
182 ChannelsModified =
true;
189 ChannelsModified =
true;
200 ChannelsModified |=
Channel->SetLinkChannels(LinkChannels);
208 if (
Setup.UpdateChannels == 1 ||
Setup.UpdateChannels >= 3) {
214 StateKey.
Remove(ChannelsModified);
#define ISTRANSPONDER(f1, f2)
Descriptor * getNext(Iterator &it)
DescriptorTag getDescriptorTag() const
int getTransportStream() const
int getOriginalNetworkId() const
StructureLoop< Service > serviceLoop
int getSectionNumber() const
int getLastSectionNumber() const
int getVersionNumber() const
DescriptorLoop serviceDescriptors
int getTransportStreamId() const
StructureLoop< Service > serviceLoop
int getOriginalNetworkId() const
int getServiceType() const
static cChannels * GetChannelsWrite(cStateKey &StateKey, int TimeoutMs=0)
Gets the list of channels for write access.
cChannel * NewChannel(const cChannel *Transponder, const char *Name, const char *ShortName, const char *Provider, int Nid, int Tid, int Sid, int Rid=0)
bool MarkObsoleteChannels(int Source, int Nid, int Tid)
const cChannel * GetByChannelID(tChannelID ChannelID, bool TryWithoutRid=false, bool TryWithoutPolarization=false) const
void Set(u_short Pid, u_char Tid, u_char Mask=0xFF)
Sets the given filter data by calling Add() with Sticky = true.
int Transponder(void)
Returns the transponder of the data delivered to this filter.
virtual void SetStatus(bool On)
Turns this filter on or off, depending on the value of On.
int Source(void)
Returns the source of the data delivered to this filter.
const cChannel * Channel(void)
Returns the channel of the data delivered to this filter.
void Add(cListObject *Object, cListObject *After=NULL)
virtual void SetStatus(bool On) override
Turns this filter on or off, depending on the value of On.
virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length) override
Processes the data delivered to this filter.
cSdtFilter(cPatFilter *PatFilter)
enum eTransponderState transponderState
cSectionSyncer sectionSyncer
static cString ToString(int Code)
static bool IsCable(int Code)
void Remove(bool IncState=true)
Removes this key from the lock it was previously used with.
@ NVODReferenceDescriptorTag