diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-02 14:10:37 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-02 14:10:37 +0200 |
commit | ad5ef06857105b60c82f78f4985429d5fd502067 (patch) | |
tree | 3b47f0c37c00e8fc6534ce06f736b0ec27101c3b /eit.c | |
parent | 78e11d8c6feab964586e11e9396b3b868c086343 (diff) | |
download | vdr-ad5ef06857105b60c82f78f4985429d5fd502067.tar.gz vdr-ad5ef06857105b60c82f78f4985429d5fd502067.tar.bz2 |
Added DeleteEvent() to the EPG handler interface, so that an EPG handler can trigger deleting of an event
Diffstat (limited to 'eit.c')
-rw-r--r-- | eit.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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.16 2012/03/14 10:11:15 kls Exp $ + * $Id: eit.c 2.17 2012/06/02 14:05:22 kls Exp $ */ #include "eit.h" @@ -290,6 +290,11 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data, bo channel->SetLinkChannels(LinkChannels); Modified = true; EpgHandlers.HandleEvent(pEvent); + + if (EpgHandlers.DeleteEvent(pEvent)) { + pSchedule->DelEvent(pEvent); + pEvent = NULL; + } } if (Tid == 0x4E) { if (Empty && getSectionNumber() == 0) |