summaryrefslogtreecommitdiff
path: root/pages/vlc.ecpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2010-06-20 18:17:42 +0200
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2010-06-20 18:17:42 +0200
commit8edd4eb02751bbf45ab2833102dee3707fbbd499 (patch)
treecbfbebe9c403d896b1788f8fad124ee4d770002d /pages/vlc.ecpp
parenta5f3edc89393f869bfc6cbcadff5b727562df88a (diff)
downloadvdr-plugin-live-8edd4eb02751bbf45ab2833102dee3707fbbd499.tar.gz
vdr-plugin-live-8edd4eb02751bbf45ab2833102dee3707fbbd499.tar.bz2
Reaction to a patch sent by Jan Willies for an other problem withcvs-commit-370
tntnet version string. Jan's patch resolved the immediate problem with regard to the updated version but was not backwards compatible for older tntnet version. My changes to the code adressed that problem and added an enhancement how to deal with that problem in the future.
Diffstat (limited to 'pages/vlc.ecpp')
-rw-r--r--pages/vlc.ecpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/pages/vlc.ecpp b/pages/vlc.ecpp
index 065969c..d1f1405 100644
--- a/pages/vlc.ecpp
+++ b/pages/vlc.ecpp
@@ -5,6 +5,7 @@
#include "setup.h"
#include "tools.h"
#include "users.h"
+#include "tntfeatures.h"
using namespace std;
using namespace vdrlive;
@@ -97,7 +98,7 @@ using namespace vdrlive;
}
</%cpp>
<%cpp>
-#if TNTVERSION >= 1606
+#if TNT_HAS_GETHOST
string server = request.getHost();
server = server.substr(0, server.rfind(':'));
#else