diff --git a/CONTRIBUTORS b/CONTRIBUTORS index b80c8c30..8b9e8528 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -186,6 +186,7 @@ Norbert Schmidt Thilo Wunderlich for his help in keeping 'channels.conf' up to date + for reporting a problem with accessing the epg.data file before it is fully written Stephan Schreiber for his support in keeping the Premiere World channels up to date in 'channels.conf.cable' diff --git a/HISTORY b/HISTORY index e401707f..1795aa55 100644 --- a/HISTORY +++ b/HISTORY @@ -1180,3 +1180,5 @@ Video Disk Recorder Revision History - Fixed resetting the "First day" timer parameter once the timer actually starts recording. - Fixed the still picture workaround in case the progress display is active. +- Fixed a problem with accessing the epg.data file before it is fully written + (thanks to Thilo Wunderlich for reporting this one). diff --git a/eit.c b/eit.c index 4fc749bf..af4d3394 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.42 2002/04/01 12:58:20 kls Exp $ + * $Id: eit.c 1.43 2002/04/06 11:42:47 kls Exp $ ***************************************************************************/ #include "eit.h" @@ -1090,10 +1090,10 @@ void cSIProcessor::Action() if (epgDataFileName && now - lastDump > 600) { cMutexLock MutexLock(&schedulesMutex); - FILE *f = fopen(GetEpgDataFileName(), "w"); - if (f) { + cSafeFile f(GetEpgDataFileName()); + if (f.Open()) { schedules->Dump(f); - fclose(f); + f.Close(); } else LOG_ERROR;