summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-01-16 15:59:47 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-01-16 15:59:47 +0100
commitc7ce1c37e34bce2b945fb484e3f20fcec1fac19c (patch)
tree24d5ee9aaee513f2a21c2463acffaae7fbbc52d5 /recording.c
parent036c29246073c5384f4fa4457da3cb5ea326b25e (diff)
downloadvdr-c7ce1c37e34bce2b945fb484e3f20fcec1fac19c.tar.gz
vdr-c7ce1c37e34bce2b945fb484e3f20fcec1fac19c.tar.bz2
Fixed removing deleted recordings in case there is a problem
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/recording.c b/recording.c
index 2948343c..fcd49554 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.4 2009/01/06 14:41:11 kls Exp $
+ * $Id: recording.c 2.5 2009/01/16 15:55:18 kls Exp $
*/
#include "recording.h"
@@ -154,9 +154,10 @@ void AssertFreeDiskSpace(int Priority, bool Force)
}
r = DeletedRecordings.Next(r);
}
- if (r0 && r0->Remove()) {
+ if (r0) {
+ if (r0->Remove())
+ LastFreeDiskCheck += REMOVELATENCY / Factor;
DeletedRecordings.Del(r0);
- LastFreeDiskCheck += REMOVELATENCY / Factor;
return;
}
}