X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fdvb%2Fpvrparse.h;h=a15bbaf971ea53d8724c368a52c88645c90050ec;hb=46c144d3f294b74996cc9276528a9862e4d70efe;hp=fa931a3c0aa6985ba425a6c72da1fe7a3e3f0b94;hpb=11a55c0debe7dcb8a336eb5e59655d8c87778175;p=vuplus_dvbapp diff --git a/lib/dvb/pvrparse.h b/lib/dvb/pvrparse.h index fa931a3..a15bbaf 100755 --- a/lib/dvb/pvrparse.h +++ b/lib/dvb/pvrparse.h @@ -47,8 +47,10 @@ public: off_t getAccessPoint(pts_t ts, int marg=0); int getNextAccessPoint(pts_t &ts, const pts_t &start, int direction); - - bool empty(); + + bool hasAccessPoint() { return !m_access_points.empty(); } + + bool hasStructure() { return !m_structure_read ? false : true; } typedef unsigned long long structure_data; /* this is usually: @@ -66,7 +68,7 @@ public: int update_structure_cache_entries(off_t offset); std::string m_filename; - int m_structure_cache_valid; + int m_structure_cache_entries; unsigned long long m_structure_cache[1024]; FILE *m_structure_read, *m_structure_write; }; @@ -79,6 +81,7 @@ public: void parseData(off_t offset, const void *data, unsigned int len); void setPid(int pid, int streamtype); int getLastPTS(pts_t &last_pts); + void enableAccessPoints(bool enable) { m_enable_accesspoints = enable; } private: eMPEGStreamInformation &m_streaminfo; unsigned char m_pkt[188]; @@ -90,6 +93,7 @@ private: int m_skip; int m_last_pts_valid; pts_t m_last_pts; + bool m_enable_accesspoints; }; #endif