From bddab7107d92bdb9013dc15c078edf138d7a35e6 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 25 Feb 2002 16:32:34 +0100 Subject: [PATCH] Fixed a crash in case there is no 'epg.data' at program start --- CONTRIBUTORS | 1 + HISTORY | 5 +++++ config.h | 4 ++-- eit.c | 4 +++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index bbceff25..1acaafcb 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -124,6 +124,7 @@ Andreas Schultz for adding support for replaying DVDs (much of this was derived from dvdplayer-0.5 by Matjaz Thaler ) for adding PTS to the converted PCM audio when replaying a DVD + for fixing a crash in case there is no 'epg.data' at program start Aaron Holtzman for writing 'ac3dec' diff --git a/HISTORY b/HISTORY index ea81172d..2b0093e0 100644 --- a/HISTORY +++ b/HISTORY @@ -1042,3 +1042,8 @@ Video Disk Recorder Revision History inadvertently overwriting an existing VDR directory with a new version. - Added a missing error message in SVDRP command LSTC in case the given channel can't be found. + +2002-02-25: Version 1.0.0pre2 + +- Fixed a crash in case there is no 'epg.data' at program start (thanks to + Andreas Schultz). diff --git a/config.h b/config.h index 35f1590c..b5860d18 100644 --- a/config.h +++ b/config.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.99 2002/02/24 13:39:47 kls Exp $ + * $Id: config.h 1.100 2002/02/25 16:29:09 kls Exp $ */ #ifndef __CONFIG_H @@ -19,7 +19,7 @@ #include "eit.h" #include "tools.h" -#define VDRVERSION "1.0.0pre1" +#define VDRVERSION "1.0.0pre2" #define MAXPRIORITY 99 #define MAXLIFETIME 99 diff --git a/eit.c b/eit.c index bd43fe92..8f4c0372 100644 --- a/eit.c +++ b/eit.c @@ -16,7 +16,7 @@ * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * - * $Id: eit.c 1.37 2002/02/23 17:11:19 kls Exp $ + * $Id: eit.c 1.38 2002/02/25 16:30:42 kls Exp $ ***************************************************************************/ #include "eit.h" @@ -1022,6 +1022,8 @@ bool cSIProcessor::Read(FILE *f) return false; } } + else + return false; } bool result = cSchedules::Read(f); if (OwnFile)