From cbc6f442648a0aea4b94d81176f044c642a7d2b0 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Thu, 8 Mar 2018 13:02:38 +0100 Subject: Compile under VDR 2.3.1 --- searchtimer.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'searchtimer.h') diff --git a/searchtimer.h b/searchtimer.h index f797ebd..f9ed924 100644 --- a/searchtimer.h +++ b/searchtimer.h @@ -11,8 +11,13 @@ private: int startTime; int stopTime; int useChannel; +#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) + const cChannel *channelMin; + const cChannel *channelMax; +#else cChannel *channelMin; cChannel *channelMax; +#endif std::string channelGroup; int useCase; int mode; @@ -106,8 +111,8 @@ public: void SetUseSubtitle(bool useSubtitle) { this->useSubtitle = useSubtitle; }; void SetUseDesription(bool useDescription) { this->useDescription = useDescription; }; void SetUseChannel(bool useChannel) { this->useChannel = useChannel; }; - void SetStartChannel(int startChannel) { channelMin = Channels.GetByNumber(startChannel); }; - void SetStopChannel(int stopChannel) { channelMax = Channels.GetByNumber(stopChannel); }; + void SetStartChannel(int startChannel); + void SetStopChannel(int stopChannel); void SetUseTime(bool useTime) { this->useTime = useTime; }; void SetStartTime(int startTime) { this->startTime = startTime; }; void SetStopTime(int stopTime) { this->stopTime = stopTime; }; -- cgit v1.2.3