From 393627abd5c44cc092d178b70d7fb09c676a3dee Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 5 Jun 2005 12:19:50 +0200 Subject: EPG events without a title now display "No title" instead of "(null)" --- epg.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'epg.c') diff --git a/epg.c b/epg.c index 29e2b825..05c6d742 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 and Rolf Hakenes . * - * $Id: epg.c 1.34 2005/05/29 10:26:54 kls Exp $ + * $Id: epg.c 1.35 2005/06/05 12:17:15 kls Exp $ */ #include "epg.h" @@ -323,7 +323,7 @@ bool cEvent::Read(FILE *f, cSchedule *Schedule) return false; } -#define MAXEPGBUGFIXSTATS 12 +#define MAXEPGBUGFIXSTATS 13 #define MAXEPGBUGFIXCHANS 100 struct tEpgBugFixStats { int hits; @@ -638,6 +638,11 @@ void cEvent::FixEpgBugs(void) } } } + else { + // we don't want any "(null)" titles + title = strcpyrealloc(title, tr("No title")); + EpgBugFixStat(12, ChannelID()); + } } // --- cSchedule ------------------------------------------------------------- -- cgit v1.2.3