summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-07-17 11:22:29 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-07-17 11:22:29 +0200
commitc99e16ec41d48206c1c7e158be91a96c33c36539 (patch)
tree0f9edb833d98dd0ec6f5c888dfa91d56c30e35f6 /recording.c
parent70ea2cbbd1d9b393486c01632716124ca7e55b27 (diff)
downloadvdr-c99e16ec41d48206c1c7e158be91a96c33c36539.tar.gz
vdr-c99e16ec41d48206c1c7e158be91a96c33c36539.tar.bz2
Removed all error messages from cRecordings::ScanVideoDir()
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c23
1 files changed, 7 insertions, 16 deletions
diff --git a/recording.c b/recording.c
index cbc916a2..e33e2315 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.88 2004/06/13 20:25:19 kls Exp $
+ * $Id: recording.c 1.89 2004/07/17 11:22:29 kls Exp $
*/
#include "recording.h"
@@ -626,7 +626,7 @@ cRecordings::cRecordings(bool Deleted)
lastUpdate = 0;
}
-bool cRecordings::ScanVideoDir(const char *DirName)
+void cRecordings::ScanVideoDir(const char *DirName)
{
DIR *d = opendir(DirName);
if (d) {
@@ -641,10 +641,10 @@ bool cRecordings::ScanVideoDir(const char *DirName)
free(buffer);
buffer = ReadLink(buffer);
if (!buffer)
- return false;
+ continue;
if (stat(buffer, &st) != 0) {
- LOG_ERROR_STR(DirName);
- return false;
+ free(buffer);
+ continue;
}
}
if (S_ISDIR(st.st_mode)) {
@@ -655,24 +655,15 @@ bool cRecordings::ScanVideoDir(const char *DirName)
else
delete r;
}
- else if (!ScanVideoDir(buffer))
- return false;
+ else
+ ScanVideoDir(buffer);
}
}
- else {
- LOG_ERROR_STR(DirName);
- return false;
- }
free(buffer);
}
}
closedir(d);
}
- else {
- LOG_ERROR_STR(DirName);
- return false;
- }
- return true;
}
bool cRecordings::NeedsUpdate(void)