summaryrefslogtreecommitdiff
path: root/responsememblk.c
diff options
context:
space:
mode:
authorthlo <smarttv640@gmail.com>2013-10-28 22:18:36 +0100
committerthorsten <thorsten@teefax.(none)>2013-10-28 22:18:36 +0100
commit52fb1d255b53d3155815f04b723c91263ea66623 (patch)
tree6b77399587f816b21494dc347f48e0ed47aad862 /responsememblk.c
parent3f09dd2e39df84babe91248e8543edfd7bc1a884 (diff)
downloadvdr-plugin-smarttvweb-52fb1d255b53d3155815f04b723c91263ea66623.tar.gz
vdr-plugin-smarttvweb-52fb1d255b53d3155815f04b723c91263ea66623.tar.bz2
Compatibility with VDR 2.1.2
Diffstat (limited to 'responsememblk.c')
-rwxr-xr-xresponsememblk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/responsememblk.c b/responsememblk.c
index 2ac0a93..0420f67 100755
--- a/responsememblk.c
+++ b/responsememblk.c
@@ -1792,7 +1792,11 @@ int cResponseMemBlk::sendVdrStatusXml (struct stat *statbuf) {
char timebuf[128];
time_t now;
+#if VDRVERSNUM >= 20102
+ percent = cVideoDirectory::VideoDiskSpace(&free, &used);
+#else
percent = VideoDiskSpace(&free, &used);
+#endif
*mResponseMessage += "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
*mResponseMessage += "<vdrstatus>\n";