diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-21 10:02:19 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-21 10:02:19 +0100 |
commit | d1668d768cbf71326235014d465d4352a78814b2 (patch) | |
tree | 938efca4cc9b29ec507294940c2a214e2332cdf7 /menu.c | |
parent | 611656bf46a59d8422adfcd158e4bc6dbc688dbd (diff) | |
download | vdr-d1668d768cbf71326235014d465d4352a78814b2.tar.gz vdr-d1668d768cbf71326235014d465d4352a78814b2.tar.bz2 |
Only calling AssertFreeDiskSpace() with 'Force' if timer is not pending
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.398 2006/01/20 17:19:46 kls Exp $ + * $Id: menu.c 1.399 2006/01/21 10:02:19 kls Exp $ */ #include "menu.h" @@ -3524,8 +3524,10 @@ bool cRecordControls::Start(cTimer *Timer, bool Pause) { static time_t LastNoDiskSpaceMessage = 0; int FreeMB = 0; - if (Timer) - AssertFreeDiskSpace(Timer->Priority(), true); + if (Timer) { + AssertFreeDiskSpace(Timer->Priority(), !Timer->Pending()); + Timer->SetPending(true); + } VideoDiskSpace(&FreeMB); if (FreeMB < MINFREEDISK) { if (!Timer || time(NULL) - LastNoDiskSpaceMessage > NODISKSPACEDELTA) { |