summaryrefslogtreecommitdiff
path: root/eit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-10-07 12:37:59 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-10-07 12:37:59 +0200
commitf951fb2f9c83797e2df1f0dd2884cc1dfb46493e (patch)
tree45f85ede14f9f250e8fa067080998565b87e942e /eit.c
parent94e43892a54f74b34e8a06d79784a225cfd8333d (diff)
downloadvdr-f951fb2f9c83797e2df1f0dd2884cc1dfb46493e.tar.gz
vdr-f951fb2f9c83797e2df1f0dd2884cc1dfb46493e.tar.bz2
Now clearing an event's Title, ShortText and Description if there is no ShortEventDescriptor or ExtendedEventDescriptor, respectively
Diffstat (limited to 'eit.c')
-rw-r--r--eit.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/eit.c b/eit.c
index fc65bc9c..23ae987d 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.120 2006/08/05 10:01:21 kls Exp $
+ * $Id: eit.c 1.121 2006/10/07 12:32:24 kls Exp $
*/
#include "eit.h"
@@ -234,10 +234,16 @@ 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 {
+ pEvent->SetTitle(NULL);
+ pEvent->SetShortText(NULL);
+ }
if (ExtendedEventDescriptors) {
char buffer[ExtendedEventDescriptors->getMaximumTextLength(": ") + 1];
pEvent->SetDescription(ExtendedEventDescriptors->getText(buffer, sizeof(buffer), ": "));
}
+ else
+ pEvent->SetDescription(NULL);
}
delete ExtendedEventDescriptors;
delete ShortEventDescriptor;