API change of VDR 2.1.2

This commit is contained in:
Frank Schmirler 2013-10-20 00:10:39 +02:00
parent a9c2adb565
commit dfc8339c9e
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -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) {