summaryrefslogtreecommitdiff
path: root/eit2.h
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2014-04-14 07:40:50 (GMT)
committerDimitar Petrovski <dimeptr@gmail.com>2014-04-14 07:40:50 (GMT)
commitd7dc6141c91b48c410e9cc5734ca9a2adecc278e (patch)
tree4f3453ec0402557730fb67d1a65795a8c8a79333 /eit2.h
parent69b47ba4bf0195fd6820beb2cf4f7c7ea31f4011 (diff)
downloadvdr-plugin-eepg-d7dc6141c91b48c410e9cc5734ca9a2adecc278e.tar.gz
vdr-plugin-eepg-d7dc6141c91b48c410e9cc5734ca9a2adecc278e.tar.bz2
Move Format out of global scope, fixes #1634 and other problems with multiple devices. Thanks to cheesemonster
Diffstat (limited to 'eit2.h')
-rw-r--r--eit2.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/eit2.h b/eit2.h
index 7686672..c85a9d3 100644
--- a/eit2.h
+++ b/eit2.h
@@ -4,7 +4,9 @@
#include <libsi/descriptor.h>
#include <libsi/si.h>
#include <vdr/epg.h>
+#include "util.h"
+using namespace util;
namespace SI
{
enum DescriptorTagExt {
@@ -22,9 +24,10 @@ extern bool SystemCharacterTableIsSingleByte;*/
class cEIT2:public SI::EIT
{
public:
- cEIT2(cSchedules * Schedules, int Source, u_char Tid, const u_char * Data, bool isEITPid = false,
+ cEIT2(cSchedules * Schedules, int Source, u_char Tid, const u_char * Data,
+ EFormat format, bool isEITPid = false,
bool OnlyRunningStatus = false);
- cEIT2 (cSchedule * Schedule);
+ cEIT2 (cSchedule * Schedule, EFormat format);
//protected:
// void updateEquivalent(cSchedules * Schedules, tChannelID channelID, cEvent *pEvent);
cEvent* ProcessEitEvent(cSchedule *Schedule, const SI::EIT::Event *EitEvent, uchar TableID, uchar Version);
@@ -42,6 +45,7 @@ private:
time_t SegmentStart;
time_t SegmentEnd;
cSchedules* Schedules;
+ EFormat Format;
cChannel* channel;
};