diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2006-09-17 18:00:00 +0200 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2006-09-17 18:00:00 +0200 |
commit | d495ed1a3e51fbb0fa0704cdb048a385be2b6a9b (patch) | |
tree | 813ad4f9eac743ee95510db944522c69da8e0d09 /recording.c | |
parent | 0b99b3aac10e38d624488978641d66fae3f41a28 (diff) | |
download | vdr-patch-lnbsharing-vdr-1.4.2-3.tar.gz vdr-patch-lnbsharing-vdr-1.4.2-3.tar.bz2 |
Version 1.4.2-3vdr-1.4.2-3
- Added --remove-destination to the 'cp' command for binaries in the Makefiles of
the plugins (thanks to Rolf Ahrenberg).
- The 'skincurses' plugin now adjusts the size of the OSD to the size of the console
window.
- Fixed deleting expired VPS timers (under certain conditions a timer could have been
deleted before it even started recording).
- Updated the Hungarian language texts (thanks to Istvan Koenigsberger and Guido Josten).
- Fixed handling video directory updates in case the timestamp of the .update file
is in the future (thanks to Petri Hintukainen).
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/recording.c b/recording.c index fd7800b..e60c478 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 1.149 2006/07/30 10:23:46 kls Exp $ + * $Id: recording.c 1.150 2006/09/16 12:12:34 kls Exp $ */ #include "recording.h" @@ -947,7 +947,10 @@ void cRecordings::TouchUpdate(void) bool cRecordings::NeedsUpdate(void) { - return lastUpdate < LastModifiedTime(UpdateFileName()); + time_t lastModified = LastModifiedTime(UpdateFileName()); + if (lastModified > time(NULL)) + return false; // somebody's clock isn't running correctly + return lastUpdate < lastModified; } bool cRecordings::Update(bool Wait) |