summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2014-12-17 15:49:29 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-06-13 17:29:36 +0100
commita39fc71a371b8e90ef6af213e0fafe4db31b8da5 (patch)
tree460941fb1a05043a9ff5ea8f511b507862ccb2ef
parentMerge branch 'netfs-test-refactor' (diff)
downloadp2pvr-a39fc71a371b8e90ef6af213e0fafe4db31b8da5.tar.bz2
p2pvr-a39fc71a371b8e90ef6af213e0fafe4db31b8da5.tar.xz
p2pvr-a39fc71a371b8e90ef6af213e0fafe4db31b8da5.zip
Standardize return value of HandleTable
-rw-r--r--p2pvr/daemon/maintenance/events.cpp3
-rw-r--r--p2pvr/dvb/siParsers/event.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/p2pvr/daemon/maintenance/events.cpp b/p2pvr/daemon/maintenance/events.cpp
index b0c8b74..648be0b 100644
--- a/p2pvr/daemon/maintenance/events.cpp
+++ b/p2pvr/daemon/maintenance/events.cpp
@@ -15,12 +15,13 @@ class SiEventsHandler : public SiEpgParser {
SiEventsHandler(const RowProcessorCallback & cb) :
callBack(cb) {}
- void HandleTable(DVBSI::EventPtr e)
+ bool HandleTable(DVBSI::EventPtr e)
{
Logger()->messagebf(LOG_DEBUG, "Service Id: %d Program Id: %d Title: %s Time: %s - %s",
e->ServiceId, e->EventId, e->Title, e->StartTime, e->StopTime);
BindColumns<DVBSI::EventPtr>(rowState, e);
rowState.process(callBack);
+ return false;
}
private:
diff --git a/p2pvr/dvb/siParsers/event.h b/p2pvr/dvb/siParsers/event.h
index 6b316cc..d437c4e 100644
--- a/p2pvr/dvb/siParsers/event.h
+++ b/p2pvr/dvb/siParsers/event.h
@@ -21,7 +21,7 @@ class SiEpgParser : public SiTableParser<EventInformation, DVBSI::EitInformation
uint8_t LastTableId(const EventInformation * ei) { return ei->LastTableId; }
void ParseSiTable(const EventInformation * eit, DVBSI::EitInformationPtr);
bool HandleTable(DVBSI::EitInformationPtr);
- virtual void HandleTable(DVBSI::EventPtr) = 0;
+ virtual bool HandleTable(DVBSI::EventPtr) = 0;
private:
static void parseStartTimeAndDuration(DVBSI::EventPtr, const u_char * data);