eitd/SIsections.cpp: add SIsectionTIME, parse TOT/TDT using libdvbsi++

Origin commit data
------------------
Branch: ni/coolstream
Commit: b5113a173d
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-03-02 (Fri, 02 Mar 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-03-02 19:02:33 +04:00
parent d248227f02
commit c43d9fc165
2 changed files with 63 additions and 0 deletions

View File

@@ -89,4 +89,20 @@ public:
};
class SIsectionTIME
{
private:
time_t dvbtime;
int parsed;
void parse(uint8_t *buf);
public:
SIsectionTIME(uint8_t *buf)
{
parsed = 0;
parse(buf);
}
time_t getTime() { return dvbtime; }
int is_parsed(void) const { return parsed; }
};
#endif // SISECTIONS_HPP