summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-01-20 17:19:46 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-01-20 17:19:46 +0100
commit611656bf46a59d8422adfcd158e4bc6dbc688dbd (patch)
tree2a06a3c8b5ef8fd07bdc93123e92abbcaf78642e /menu.c
parent9038f45a0d0996043ba79cdd38c4f0c6153f64ba (diff)
downloadvdr-611656bf46a59d8422adfcd158e4bc6dbc688dbd.tar.gz
vdr-611656bf46a59d8422adfcd158e4bc6dbc688dbd.tar.bz2
Added AssertFreeDiskSpace() before starting a timer recording
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 44c9094d..956711d7 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.397 2006/01/20 16:28:18 kls Exp $
+ * $Id: menu.c 1.398 2006/01/20 17:19:46 kls Exp $
*/
#include "menu.h"
@@ -3524,6 +3524,8 @@ bool cRecordControls::Start(cTimer *Timer, bool Pause)
{
static time_t LastNoDiskSpaceMessage = 0;
int FreeMB = 0;
+ if (Timer)
+ AssertFreeDiskSpace(Timer->Priority(), true);
VideoDiskSpace(&FreeMB);
if (FreeMB < MINFREEDISK) {
if (!Timer || time(NULL) - LastNoDiskSpaceMessage > NODISKSPACEDELTA) {