summaryrefslogtreecommitdiff
path: root/recman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'recman.cpp')
-rw-r--r--recman.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/recman.cpp b/recman.cpp
index 6a2fc00..ade3d93 100644
--- a/recman.cpp
+++ b/recman.cpp
@@ -112,7 +112,11 @@ namespace vdrlive {
if (found == string::npos)
return false;
+#if APIVERSNUM > 20101
+ string newname = string(cVideoDirectory::Name()) + "/" + name + oldname.substr(found);
+#else
string newname = string(VideoDirectory) + "/" + name + oldname.substr(found);
+#endif
if (!MoveDirectory(oldname.c_str(), newname.c_str(), copy)) {
esyslog("[LIVE]: renaming failed from '%s' to '%s'", oldname.c_str(), newname.c_str());