Fixed handling recordings on other file systems than the video directory

This commit is contained in:
Klaus Schmidinger
2008-02-16 13:38:22 +01:00
parent 47d6f9d187
commit 741400fa66
7 changed files with 74 additions and 28 deletions

View File

@@ -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;
}