summaryrefslogtreecommitdiff
path: root/eit2.c
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.c
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.c')
-rw-r--r--eit2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/eit2.c b/eit2.c
index 3980dba..4e813af 100644
--- a/eit2.c
+++ b/eit2.c
@@ -9,7 +9,6 @@
#include <string>
#include <vdr/config.h>
#include "log.h"
-#include "util.h"
#include "dish.h"
#include "equivhandler.h"
@@ -435,10 +434,11 @@ void cEIT2::ProcessEventDescriptors(bool ExternalData, int Source,
channel->SetLinkChannels (LinkChannels);
}
-cEIT2::cEIT2 (cSchedules * Schedules, int Source, u_char Tid, const u_char * Data, bool isEITPid, bool OnlyRunningStatus)
+cEIT2::cEIT2 (cSchedules * Schedules, int Source, u_char Tid, const u_char * Data, EFormat format, bool isEITPid, bool OnlyRunningStatus)
: SI::EIT (Data, false)
, OnlyRunningStatus(OnlyRunningStatus)
, Schedules(Schedules)
+, Format(format)
{
//LogD(2, prep("cEIT2::cEIT2"));
@@ -563,13 +563,14 @@ cEIT2::cEIT2 (cSchedules * Schedules, int Source, u_char Tid, const u_char * Dat
}
//end of cEIT2
-cEIT2::cEIT2 (cSchedule * Schedule)
+cEIT2::cEIT2 (cSchedule * Schedule, EFormat format)
: Empty(true)
, Modified(false)
, OnlyRunningStatus(false)
, SegmentStart(0)
, SegmentEnd(0)
, Schedules(NULL)
+, Format(format)
{
//LogD(2, prep("cEIT2::cEIT2"));
// if (Tid > 0 && (Format == DISH_BEV || (SetupPE->ProcessEIT && isEITPid))) Tid--;