mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
API change of VDR 2.1.2
This commit is contained in:
parent
a9c2adb565
commit
dfc8339c9e
1
HISTORY
1
HISTORY
@ -1,6 +1,7 @@
|
|||||||
VDR Plugin 'streamdev' Revision History
|
VDR Plugin 'streamdev' Revision History
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
|
- API change of VDR 2.1.2
|
||||||
- Fixed priority handling, messed up when adding multi-device support
|
- Fixed priority handling, messed up when adding multi-device support
|
||||||
- Added HTTP "Server" header (suggested by hivdr)
|
- Added HTTP "Server" header (suggested by hivdr)
|
||||||
- Ignore dummy file extensions (.ts, .vob, .vdr) when parsing HTTP URIs
|
- Ignore dummy file extensions (.ts, .vob, .vdr) when parsing HTTP URIs
|
||||||
|
@ -1377,7 +1377,11 @@ bool cConnectionVTP::CmdSTAT(const char *Option)
|
|||||||
if (*Option) {
|
if (*Option) {
|
||||||
if (strcasecmp(Option, "DISK") == 0) {
|
if (strcasecmp(Option, "DISK") == 0) {
|
||||||
int FreeMB, UsedMB;
|
int FreeMB, UsedMB;
|
||||||
|
#if APIVERSNUM < 20102
|
||||||
int Percent = VideoDiskSpace(&FreeMB, &UsedMB);
|
int Percent = VideoDiskSpace(&FreeMB, &UsedMB);
|
||||||
|
#else
|
||||||
|
int Percent = cVideoDirectory::VideoDiskSpace(&FreeMB, &UsedMB);
|
||||||
|
#endif
|
||||||
Reply(250, "%dMB %dMB %d%%", FreeMB + UsedMB, FreeMB, Percent);
|
Reply(250, "%dMB %dMB %d%%", FreeMB + UsedMB, FreeMB, Percent);
|
||||||
}
|
}
|
||||||
else if (strcasecmp(Option, "NAME") == 0) {
|
else if (strcasecmp(Option, "NAME") == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user