diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-07-28 13:44:31 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-07-28 13:44:31 +0200 |
commit | 92096e097a5cb6b90fb982d90b16012682d67ccf (patch) | |
tree | 132e337d98f7dbfec9d81c234d32171abd9d3fdc /recording.c | |
parent | 7ac97639da8b6428e2a17464bddea0280f032321 (diff) | |
download | vdr-92096e097a5cb6b90fb982d90b16012682d67ccf.tar.gz vdr-92096e097a5cb6b90fb982d90b16012682d67ccf.tar.bz2 |
Added command line option '-v'
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/recording.c b/recording.c index 067ce68a..277b9114 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 1.13 2000/07/27 20:01:05 kls Exp $ + * $Id: recording.c 1.14 2000/07/28 12:47:54 kls Exp $ */ #define _GNU_SOURCE @@ -32,14 +32,14 @@ #define DISKCHECKDELTA 300 // seconds between checks for free disk space -const char *BaseDir = "/video"; +const char *VideoDirectory = "/video"; static bool LowDiskSpace(void) { //TODO Find a simpler way to determine the amount of free disk space! bool result = true; char *cmd = NULL; - asprintf(&cmd, DFCMD, BaseDir); + asprintf(&cmd, DFCMD, VideoDirectory); FILE *p = popen(cmd, "r"); if (p) { char *s; @@ -124,7 +124,7 @@ cRecording::cRecording(const char *FileName) { titleBuffer = NULL; fileName = strdup(FileName); - FileName += strlen(BaseDir) + 1; + FileName += strlen(VideoDirectory) + 1; char *p = strrchr(FileName, '/'); name = NULL; @@ -190,7 +190,7 @@ const char *cRecording::FileName(void) { if (!fileName) { struct tm *t = localtime(&start); - asprintf(&fileName, NAMEFORMAT, BaseDir, name, t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, t->tm_hour, t->tm_min, priority, lifetime); + asprintf(&fileName, NAMEFORMAT, VideoDirectory, name, t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, t->tm_hour, t->tm_min, priority, lifetime); if (fileName) strreplace(fileName, ' ', '_'); } @@ -262,7 +262,7 @@ bool cRecordings::Load(bool Deleted) Clear(); bool result = false; char *cmd = NULL; - asprintf(&cmd, FINDCMD, BaseDir, Deleted ? "*" DELEXT : "*" RECEXT); + asprintf(&cmd, FINDCMD, VideoDirectory, Deleted ? "*" DELEXT : "*" RECEXT); FILE *p = popen(cmd, "r"); if (p) { char *s; |