summaryrefslogtreecommitdiff
path: root/eit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-10-09 16:22:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-10-09 16:22:07 +0200
commitc65fc1593488b457799366bba98cb51e3753690e (patch)
tree017da31d76bbafb621cf90622ca695a2fbdf5ce4 /eit.c
parenta9d6bb256d53f5cc16679b856d4cc5c0cc5b98c1 (diff)
downloadvdr-c65fc1593488b457799366bba98cb51e3753690e.tar.gz
vdr-c65fc1593488b457799366bba98cb51e3753690e.tar.bz2
Fixed clearing an event's Title, ShortText and Description in case the data comes from an external source
Diffstat (limited to 'eit.c')
-rw-r--r--eit.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/eit.c b/eit.c
index 23ae987d..2b07b87c 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.121 2006/10/07 12:32:24 kls Exp $
+ * $Id: eit.c 1.122 2006/10/09 16:14:36 kls Exp $
*/
#include "eit.h"
@@ -234,7 +234,7 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data, bo
pEvent->SetTitle(ShortEventDescriptor->name.getText(buffer, sizeof(buffer)));
pEvent->SetShortText(ShortEventDescriptor->text.getText(buffer, sizeof(buffer)));
}
- else {
+ else if (!HasExternalData) {
pEvent->SetTitle(NULL);
pEvent->SetShortText(NULL);
}
@@ -242,7 +242,7 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data, bo
char buffer[ExtendedEventDescriptors->getMaximumTextLength(": ") + 1];
pEvent->SetDescription(ExtendedEventDescriptors->getText(buffer, sizeof(buffer), ": "));
}
- else
+ else if (!HasExternalData)
pEvent->SetDescription(NULL);
}
delete ExtendedEventDescriptors;
@@ -250,7 +250,8 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data, bo
pEvent->SetComponents(Components);
- pEvent->FixEpgBugs();
+ if (!HasExternalData)
+ pEvent->FixEpgBugs();
if (LinkChannels)
channel->SetLinkChannels(LinkChannels);
Modified = true;