From e2a9b979d3fb92967c7a6a8221e674eb7e55c813 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Sat, 30 Sep 2017 21:31:48 +0200 Subject: [PATCH] fixed compilation for VDR 2.3.7 (thanks to Jasmin J) --- CONTRIBUTORS | 1 + HISTORY | 1 + server/connectionVTP.c | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index f2d90b2..8130544 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -258,3 +258,4 @@ David Binderman Jasmin J for fixing some warnings in libdvbmpeg for adding .gitignore + for fixing compilation for VDR 2.3.7 diff --git a/HISTORY b/HISTORY index ff1a54e..c0eee9b 100644 --- a/HISTORY +++ b/HISTORY @@ -1,6 +1,7 @@ VDR Plugin 'streamdev' Revision History --------------------------------------- +- fixed compilation for VDR 2.3.7 (thanks to Jasmin J) - added .gitignore (thanks to Jasmin J) - fixed some warnings in libdvbmpeg (thanks to Jasmin J) - fixed lseek error check in libdvbmpeg (thanks to David Binderman) diff --git a/server/connectionVTP.c b/server/connectionVTP.c index 1b8dd96..346ca45 100644 --- a/server/connectionVTP.c +++ b/server/connectionVTP.c @@ -41,7 +41,9 @@ private: enum eStates { Channel, Event, Title, Subtitle, Description, Vps, Content, Rating, EndEvent, EndChannel, EndEPG }; cConnectionVTP *m_Client; +#if APIVERSNUM < 20300 cSchedulesLock *m_SchedulesLock; +#endif const cSchedules *m_Schedules; const cSchedule *m_Schedule; const cEvent *m_Event; @@ -210,7 +212,9 @@ cLSTEHandler::cLSTEHandler(cConnectionVTP *Client, const char *Option): cLSTEHandler::~cLSTEHandler() { +#if APIVERSNUM < 20300 delete m_SchedulesLock; +#endif } bool cLSTEHandler::Next(bool &Last)