summaryrefslogtreecommitdiff
path: root/eit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-10-31 13:01:35 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-10-31 13:01:35 +0100
commitbd62ca6abc61827dd75962e952783acf83565949 (patch)
tree017e3e4475cfbd81674e0ae03d70de33d1ce2a5c /eit.c
parentfd9c2d298c0a8fb8e005b46a728841759b126430 (diff)
downloadvdr-bd62ca6abc61827dd75962e952783acf83565949.tar.gz
vdr-bd62ca6abc61827dd75962e952783acf83565949.tar.bz2
Added the 'portal name' to cChannels
Diffstat (limited to 'eit.c')
-rw-r--r--eit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/eit.c b/eit.c
index af22f22e..ed02cf28 100644
--- a/eit.c
+++ b/eit.c
@@ -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 1.99 2004/10/31 12:41:04 kls Exp $
+ * $Id: eit.c 1.100 2004/10/31 12:56:24 kls Exp $
*/
#include "eit.h"
@@ -161,10 +161,10 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data)
time_t now = time(NULL);
bool hit = SiEitEvent.getStartTime() <= now && now < SiEitEvent.getStartTime() + SiEitEvent.getDuration();
if (hit) {
+ char linkName[ld->privateData.getLength() + 1];
+ strn0cpy(linkName, (const char *)ld->privateData.getData(), sizeof(linkName));
cChannel *link = Channels.GetByChannelID(linkID);
if (link != channel) { // only link to other channels, not the same one
- char linkName[ld->privateData.getLength() + 1];
- strn0cpy(linkName, (const char *)ld->privateData.getData(), sizeof(linkName));
//fprintf(stderr, "Linkage %s %4d %4d %5d %5d %5d %5d %02X '%s'\n", hit ? "*" : "", channel->Number(), link ? link->Number() : -1, SiEitEvent.getEventId(), ld->getOriginalNetworkId(), ld->getTransportStreamId(), ld->getServiceId(), ld->getLinkageType(), linkName);//XXX
if (link) {
if (Setup.UpdateChannels >= 1)
@@ -180,6 +180,8 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data)
LinkChannels->Add(new cLinkChannel(link));
}
}
+ else
+ channel->SetPortalName(linkName);
}
}
}