diff -cr /data/installfiles/vdrplugins/vdr-plugin-live/pages/recordings.ecpp ./pages/recordings.ecpp *** /data/installfiles/vdrplugins/vdr-plugin-live/pages/recordings.ecpp 2015-01-05 17:56:48.000000000 +0100 --- ./pages/recordings.ecpp 2015-01-06 16:40:26.000000000 +0100 *************** *** 79,85 **** --- 79,89 ---- deletions.clear(); int FreeMB, UsedMB; + #if APIVERSNUM > 20101 + int Percent = cVideoDirectory::VideoDiskSpace(&FreeMB, &UsedMB); + #else int Percent = VideoDiskSpace(&FreeMB, &UsedMB); + #endif int Minutes = int(double(FreeMB) / MB_PER_MINUTE); int Hours = Minutes / 60; Minutes %= 60; diff -cr /data/installfiles/vdrplugins/vdr-plugin-live/recman.cpp ./recman.cpp *** /data/installfiles/vdrplugins/vdr-plugin-live/recman.cpp 2015-01-05 17:56:48.000000000 +0100 --- ./recman.cpp 2015-01-06 14:32:01.000000000 +0100 *************** *** 112,118 **** --- 112,122 ---- 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()); diff -cr /data/installfiles/vdrplugins/vdr-plugin-live/tools.cpp ./tools.cpp *** /data/installfiles/vdrplugins/vdr-plugin-live/tools.cpp 2015-01-05 17:56:48.000000000 +0100 --- ./tools.cpp 2015-01-06 14:28:08.000000000 +0100 *************** *** 365,371 **** --- 365,375 ---- stat(source.c_str(), &st1); stat(target.c_str(),&st2); if (!copy && (st1.st_dev == st2.st_dev)) { + #if APIVERSNUM > 20101 + if (!cVideoDirectory::RenameVideoFile(source.c_str(), target.c_str())) { + #else if (!RenameVideoFile(source.c_str(), target.c_str())) { + #endif esyslog("[LIVE]: rename failed from %s to %s", source.c_str(), target.c_str()); return false; } *************** *** 461,467 **** --- 465,475 ---- size_t found = source.find_last_of(delim); if (found != std::string::npos) { source = source.substr(0, found); + #if APIVERSNUM > 20101 + while (source != cVideoDirectory::Name()) { + #else while (source != VideoDirectory) { + #endif found = source.find_last_of(delim); if (found == std::string::npos) break; *************** *** 478,484 **** --- 486,496 ---- size_t found = target.find_last_of(delim); if (found != std::string::npos) { target = target.substr(0, found); + #if APIVERSNUM > 20101 + while (target != cVideoDirectory::Name()) { + #else while (target != VideoDirectory) { + #endif found = target.find_last_of(delim); if (found == std::string::npos) break;