summaryrefslogtreecommitdiff
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
parent3f09dd2e39df84babe91248e8543edfd7bc1a884 (diff)
downloadvdr-plugin-smarttvweb-52fb1d255b53d3155815f04b723c91263ea66623.tar.gz
vdr-plugin-smarttvweb-52fb1d255b53d3155815f04b723c91263ea66623.tar.bz2
Compatibility with VDR 2.1.2
-rwxr-xr-xhttpresource.c4
-rwxr-xr-xresponsememblk.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/httpresource.c b/httpresource.c
index 7ab75af..c6050e3 100755
--- a/httpresource.c
+++ b/httpresource.c
@@ -495,7 +495,11 @@ int cHttpResource::processRequest() {
}
+#if VDRVERSNUM >= 20102
+ if (mPath.compare(0, strlen(cVideoDirectory::Name()), cVideoDirectory::Name()) == 0) {
+#else
if (mPath.compare(0, strlen(VideoDirectory), VideoDirectory) == 0) {
+#endif
*(mLog->log())<< DEBUGPREFIX
<< " Found video dir request. serving " << mPath << endl;
ok_to_serve = true;
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";