From dfc8339c9e636112acbf52631dddd4b0dbf46087 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Sun, 20 Oct 2013 00:10:39 +0200 Subject: [PATCH] API change of VDR 2.1.2 --- HISTORY | 1 + server/connectionVTP.c | 4 ++++ 2 files changed, 5 insertions(+) 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) {