X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/4bc08995411e21f3564f09e136809be68ddf96a8..3f9644531fb06a71290b65fbc97f9a8f29fd8076:/lib/dvb/esection.h diff --git a/lib/dvb/esection.h b/lib/dvb/esection.h index 6b8c8784..af5c012b 100644 --- a/lib/dvb/esection.h +++ b/lib/dvb/esection.h @@ -1,16 +1,18 @@ #ifndef __esection_h #define __esection_h -#include +#include #include class eGTable: public iObject, public Object { -DECLARE_REF; +DECLARE_REF(eGTable); private: ePtr m_reader; eDVBTableSpec m_table; + unsigned int m_tries; + eTimer *m_timeout; void sectionRead(const __u8 *data); @@ -42,7 +44,6 @@ protected: delete sections[nr]; sections.resize(max); - sections[nr] = new Section(data); avail.insert(nr); @@ -97,7 +98,12 @@ public: ~eAUTable() { - current=next=0; + stop(); + } + + void stop() + { + current = next = 0; } int begin(eMainloop *m, const eDVBTableSpec &spec, ePtr demux)