From 95a45ede4ab99e39c9fdf02aea58b46068208f89 Mon Sep 17 00:00:00 2001 From: Martin Dummer Date: Sun, 1 Jul 2012 22:59:49 +0200 Subject: =?UTF-8?q?Changes=20for=20VDR=20>=3D=201.5.7=20by=20Thomas=20G?= =?UTF-8?q?=C3=BCnther=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HISTORY | 1 + playlist.c | 4 ++++ playlist.h | 4 ++++ 3 files changed, 9 insertions(+) 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 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 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[]); -- cgit v1.2.3