summaryrefslogtreecommitdiff
path: root/videodir.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-02-16 13:38:22 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-02-16 13:38:22 +0100
commit741400fa666f9754337652c624e95aa6bdfaf98c (patch)
tree3d6d49358106e9a3f4abe9af6016376bac3a928e /videodir.c
parent47d6f9d18711c6388e93b23bc8d9ac82b3e7adbf (diff)
downloadvdr-741400fa666f9754337652c624e95aa6bdfaf98c.tar.gz
vdr-741400fa666f9754337652c624e95aa6bdfaf98c.tar.bz2
Fixed handling recordings on other file systems than the video directory
Diffstat (limited to 'videodir.c')
-rw-r--r--videodir.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/videodir.c b/videodir.c
index a07ed28e..e61e3cbc 100644
--- a/videodir.c
+++ b/videodir.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: videodir.c 1.14 2005/12/18 10:33:20 kls Exp $
+ * $Id: videodir.c 1.15 2008/02/16 13:00:03 kls Exp $
*/
#include "videodir.h"
@@ -232,3 +232,12 @@ void RemoveEmptyVideoDirectories(void)
} while (Dir.Next());
}
+bool IsOnVideoDirectoryFileSystem(const char *FileName)
+{
+ cVideoDirectory Dir;
+ do {
+ if (EntriesOnSameFileSystem(Dir.Name(), FileName))
+ return true;
+ } while (Dir.Next());
+ return false;
+}