X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/8d8294b4b354436adde202604fffb55c181d686c..358ee56f81aa18698d0fe7c949995111b051847f:/lib/dvb/specs.h diff --git a/lib/dvb/specs.h b/lib/dvb/specs.h index 23ef2cec..6f30c7b2 100644 --- a/lib/dvb/specs.h +++ b/lib/dvb/specs.h @@ -43,6 +43,23 @@ public: eDVBTableSpec::tfHaveTID | eDVBTableSpec::tfCheckCRC | eDVBTableSpec::tfHaveTimeout; } + eDVBSDTSpec(int tsid, bool other=false) + { + m_spec.pid = ServiceDescriptionSection::PID; + m_spec.tid = ServiceDescriptionSection::TID; + m_spec.tidext = tsid; + m_spec.timeout = 20000; // ServiceDescriptionSection::TIMEOUT; + m_spec.flags = eDVBTableSpec::tfAnyVersion | + eDVBTableSpec::tfHaveTID | eDVBTableSpec::tfCheckCRC | + eDVBTableSpec::tfHaveTIDExt | eDVBTableSpec::tfHaveTimeout; + if (other) + { + // SDT other transport stream have TID 0x46 (current is 0x42) + // so we mask out the third bit in table id mask.. + m_spec.flags |= eDVBTableSpec::tfHaveTIDMask; + m_spec.tid_mask = 0xFB; + } + } operator eDVBTableSpec &() { return m_spec; @@ -127,4 +144,25 @@ public: } }; +class eDVBEITSpecOther +{ + eDVBTableSpec m_spec; +public: + /* this is for now&next on actual transponder. */ + eDVBEITSpecOther(int sid) + { + m_spec.pid = EventInformationSection::PID; + m_spec.tid = TID_EIT_OTHER; + m_spec.tidext = sid; + m_spec.timeout = EventInformationSection::TIMEOUT; + m_spec.flags = eDVBTableSpec::tfAnyVersion | + eDVBTableSpec::tfHaveTID | eDVBTableSpec::tfHaveTIDExt | + eDVBTableSpec::tfCheckCRC | eDVBTableSpec::tfHaveTimeout; + } + operator eDVBTableSpec &() + { + return m_spec; + } +}; + #endif