summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-06-04 10:29:19 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-06-04 10:29:19 +0200
commit04f176b2489722283039e4c73e2f19e6a519fde1 (patch)
tree836c684f47f724b80196327a1413d95a4195e53a /epg.c
parent8d8dd8ecbd3a7c95800921009c72123939e3e571 (diff)
downloadvdr-04f176b2489722283039e4c73e2f19e6a519fde1.tar.gz
vdr-04f176b2489722283039e4c73e2f19e6a519fde1.tar.bz2
Added SetComponents() to the EPG handler interface
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/epg.c b/epg.c
index 48fff364..d47c4a37 100644
--- a/epg.c
+++ b/epg.c
@@ -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)) {