diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-04-12 14:20:52 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-04-12 14:20:52 +0200 |
commit | 1d829aaf6d263725379a5940adefbafa88af398d (patch) | |
tree | b3ea90c0501c252ebe84afd584e9134f2f6b217f /recording.c | |
parent | ffc0f49c12df27906e37b0cb1f62c56bb69da623 (diff) | |
download | vdr-1d829aaf6d263725379a5940adefbafa88af398d.tar.gz vdr-1d829aaf6d263725379a5940adefbafa88af398d.tar.bz2 |
No longer checking for deleted recordings to be removed from the foreground thread
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/recording.c b/recording.c index 2b44b1a4..22df5b6c 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 2.9 2009/01/30 16:27:19 kls Exp $ + * $Id: recording.c 2.10 2009/04/12 14:04:22 kls Exp $ */ #include "recording.h" @@ -114,15 +114,8 @@ void RemoveDeletedRecordings(void) { static time_t LastRemoveCheck = 0; if (time(NULL) - LastRemoveCheck > REMOVECHECKDELTA) { - if (!RemoveDeletedRecordingsThread.Active()) { - cThreadLock DeletedRecordingsLock(&DeletedRecordings); - for (cRecording *r = DeletedRecordings.First(); r; r = DeletedRecordings.Next(r)) { - if (r->deleted && time(NULL) - r->deleted > DELETEDLIFETIME) { - RemoveDeletedRecordingsThread.Start(); - break; - } - } - } + if (!RemoveDeletedRecordingsThread.Active()) + RemoveDeletedRecordingsThread.Start(); LastRemoveCheck = time(NULL); } } |