summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2019-05-23 10:00:48 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2019-05-23 10:00:48 +0200
commit4242fa7f22fe31e210640971b2bf21232a23807d (patch)
tree4a843cc508d343c7bec574e95efc10d53abe7ac9 /vdr.c
parentabdab188079e7db7ec22f18171ac300b16e8e8a9 (diff)
downloadvdr-4242fa7f22fe31e210640971b2bf21232a23807d.tar.gz
vdr-4242fa7f22fe31e210640971b2bf21232a23807d.tar.bz2
Fixed asserting free disk space in case there is no local timer currently recording
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 0ffa1fca..1f2e7ef8 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 4.29 2019/03/18 11:17:07 kls Exp $
+ * $Id: vdr.c 4.30 2019/05/23 09:48:35 kls Exp $
*/
#include <getopt.h>
@@ -1182,7 +1182,9 @@ int main(int argc, char *argv[])
if (Timers->DeleteExpired())
TimersModified = true;
// Make sure there is enough free disk space for ongoing recordings:
- AssertFreeDiskSpace(Timers->GetMaxPriority());
+ int MaxPriority = Timers->GetMaxPriority();
+ if (MaxPriority >= 0)
+ AssertFreeDiskSpace(MaxPriority);
TimersStateKey.Remove(TimersModified);
}
// Recordings: