diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-04 10:29:19 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-04 10:29:19 +0200 |
commit | 04f176b2489722283039e4c73e2f19e6a519fde1 (patch) | |
tree | 836c684f47f724b80196327a1413d95a4195e53a | |
parent | 8d8dd8ecbd3a7c95800921009c72123939e3e571 (diff) | |
download | vdr-04f176b2489722283039e4c73e2f19e6a519fde1.tar.gz vdr-04f176b2489722283039e4c73e2f19e6a519fde1.tar.bz2 |
Added SetComponents() to the EPG handler interface
-rw-r--r-- | CONTRIBUTORS | 3 | ||||
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | eit.c | 4 | ||||
-rw-r--r-- | epg.c | 11 | ||||
-rw-r--r-- | epg.h | 4 |
5 files changed, 19 insertions, 4 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 617e26c9..4c4c629f 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2907,3 +2907,6 @@ Christian Richter <cr@crichter.net> Christian Kaiser <christian.kaiser@teleservice.com> for adding DeleteEvent() to the EPG handler interface + +Dirk Heiser <dirk-vdr@gmx.de> + for adding SetComponents() to the EPG handler interface @@ -7164,3 +7164,4 @@ Video Disk Recorder Revision History to Rolf Ahrenberg). - Removed DeleteEvent() from the EPG handler interface (turned out not to be useful) and replaced it with HandledExternally() (thanks to Jörg Wendel). +- Added SetComponents() to the EPG handler interface (thanks to Dirk Heiser). @@ -8,7 +8,7 @@ * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg <marcel.wiesweg@gmx.de>. * - * $Id: eit.c 2.19 2012/06/04 10:10:11 kls Exp $ + * $Id: eit.c 2.20 2012/06/04 10:26:10 kls Exp $ */ #include "eit.h" @@ -285,7 +285,7 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data, bo delete ExtendedEventDescriptors; delete ShortEventDescriptor; - pEvent->SetComponents(Components); + EpgHandlers.SetComponents(pEvent, Components); EpgHandlers.FixEpgBugs(pEvent); if (LinkChannels) @@ -7,7 +7,7 @@ * Original version (as used in VDR before 1.3.0) written by * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * - * $Id: epg.c 2.16 2012/06/04 10:06:22 kls Exp $ + * $Id: epg.c 2.17 2012/06/04 10:26:10 kls Exp $ */ #include "epg.h" @@ -1421,6 +1421,15 @@ void cEpgHandlers::SetVps(cEvent *Event, time_t Vps) Event->SetVps(Vps); } +void cEpgHandlers::SetComponents(cEvent *Event, cComponents *Components) +{ + for (cEpgHandler *eh = First(); eh; eh = Next(eh)) { + if (eh->SetComponents(Event, Components)) + return; + } + Event->SetComponents(Components); +} + void cEpgHandlers::FixEpgBugs(cEvent *Event) { for (cEpgHandler *eh = First(); eh; eh = Next(eh)) { @@ -7,7 +7,7 @@ * Original version (as used in VDR before 1.3.0) written by * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * - * $Id: epg.h 2.12 2012/06/04 10:05:21 kls Exp $ + * $Id: epg.h 2.13 2012/06/04 10:26:10 kls Exp $ */ #ifndef __EPG_H @@ -259,6 +259,7 @@ public: virtual bool SetStartTime(cEvent *Event, time_t StartTime) { return false; } virtual bool SetDuration(cEvent *Event, int Duration) { return false; } virtual bool SetVps(cEvent *Event, time_t Vps) { return false; } + virtual bool SetComponents(cEvent *Event, cComponents *Components) { return false; } virtual bool FixEpgBugs(cEvent *Event) { return false; } ///< Fixes some known problems with EPG data. virtual bool HandleEvent(cEvent *Event) { return false; } @@ -285,6 +286,7 @@ public: void SetStartTime(cEvent *Event, time_t StartTime); void SetDuration(cEvent *Event, int Duration); void SetVps(cEvent *Event, time_t Vps); + void SetComponents(cEvent *Event, cComponents *Components); void FixEpgBugs(cEvent *Event); void HandleEvent(cEvent *Event); void SortSchedule(cSchedule *Schedule); |