summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--playlist.c4
-rw-r--r--playlist.h4
3 files changed, 9 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index 184eca6..4b0cee8 100644
--- a/HISTORY
+++ b/HISTORY
@@ -17,4 +17,5 @@ VDR Plugin 'playlist' Revision History
Adds -fPIC to Makefile to fix potential FTBFS
Support for the APIVERSION define as introduced in VDR-1.3.47 by Thomas Günther <tom@toms-cafe.de>
Changes for VDR >= 1.3.25 and VDR >= 1.3.36 by viking at vdrportal.de
+ Changes for VDR >= 1.5.7 by Thomas Günther <tom@toms-cafe.de>
diff --git a/playlist.c b/playlist.c
index 15270de..830ba90 100644
--- a/playlist.c
+++ b/playlist.c
@@ -159,7 +159,11 @@ cPluginPlaylist::cPluginPlaylist(void)
// Initialize any member variables here.
// DON'T DO ANYTHING ELSE THAT MAY HAVE SIDE EFFECTS, REQUIRE GLOBAL
// VDR OBJECTS TO EXIST OR PRODUCE ANY OUTPUT!
+#if VDRVERSNUM >= 10507
+ OSDLanguage = NULL;
+#else
OSDLanguage = -1;
+#endif
PluginPlaylist = this;
}
diff --git a/playlist.h b/playlist.h
index bfb7e46..08090ef 100644
--- a/playlist.h
+++ b/playlist.h
@@ -139,7 +139,11 @@ void ExpandEnvironment(tParamFile *FileStruc);
class cPluginPlaylist : public cPlugin {
private:
// Add any member variables or functions you may need here.
+#if VDRVERSNUM >= 10507
+ const char *OSDLanguage;
+#else
int OSDLanguage;
+#endif
void TestAndSetOSDLanguage(void);
bool ProcessArg(int argc, char *argv[]);