X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Fesection.h;h=6efe8c38b54f6774aa42605341b76a01551cfe3d;hp=3e097ccc142c5e12338559760a454f540aebda9c;hb=0da688aba6cca5cc5b0b4406e384fa9e3345859c;hpb=66fe4b3122e8be475ed557a6324e709eb1ca520a diff --git a/lib/dvb/esection.h b/lib/dvb/esection.h index 3e097cc..6efe8c3 100644 --- a/lib/dvb/esection.h +++ b/lib/dvb/esection.h @@ -40,6 +40,7 @@ class eTable: public eGTable private: std::vector sections; std::set avail; + unsigned char m_section_data[4096]; protected: int createTable(unsigned int nr, const __u8 *data, unsigned int max) { @@ -53,6 +54,9 @@ protected: if (avail.find(nr) != avail.end()) delete sections[nr]; + memset(m_section_data, 0, 4096); + memcpy(m_section_data, data, 4096); + sections.resize(max); sections[nr] = new Section(data); avail.insert(nr); @@ -74,6 +78,7 @@ protected: } public: std::vector &getSections() { return sections; } + unsigned char* getBufferData() { return m_section_data; } eTable(bool debug=true): eGTable(debug) { }