summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--server/connectionVTP.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index fb48b1a..6a4e675 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,6 +1,7 @@
VDR Plugin 'streamdev' Revision History
---------------------------------------
+- API change of VDR 2.1.2
- Fixed priority handling, messed up when adding multi-device support
- Added HTTP "Server" header (suggested by hivdr)
- Ignore dummy file extensions (.ts, .vob, .vdr) when parsing HTTP URIs
diff --git a/server/connectionVTP.c b/server/connectionVTP.c
index 55c92de..b3be57e 100644
--- a/server/connectionVTP.c
+++ b/server/connectionVTP.c
@@ -1377,7 +1377,11 @@ bool cConnectionVTP::CmdSTAT(const char *Option)
if (*Option) {
if (strcasecmp(Option, "DISK") == 0) {
int FreeMB, UsedMB;
+#if APIVERSNUM < 20102
int Percent = VideoDiskSpace(&FreeMB, &UsedMB);
+#else
+ int Percent = cVideoDirectory::VideoDiskSpace(&FreeMB, &UsedMB);
+#endif
Reply(250, "%dMB %dMB %d%%", FreeMB + UsedMB, FreeMB, Percent);
}
else if (strcasecmp(Option, "NAME") == 0) {