From b17f51b60c5a0adde048f09fa0053c1607302461 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Sun, 16 Dec 2012 15:44:34 +0100 Subject: Fixed IsTunedToTransponder compile error --- plugin/status.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugin/status.cpp b/plugin/status.cpp index 6aef5e2..9bc7607 100644 --- a/plugin/status.cpp +++ b/plugin/status.cpp @@ -142,12 +142,21 @@ bool cStatusMarkAd::LogoExists(const cDevice *Device,const char *FileName) cTimer *timer=NULL; for (cTimer *Timer = Timers.First(); Timer; Timer=Timers.Next(Timer)) { +#if APIVERSNUM>=107220 + if (Timer->Recording() && const_cast(Device)->IsTunedToTransponder(Timer->Channel()) && + (difftime(time(NULL),Timer->StartTime())<60)) + { + timer=Timer; + break; + } +#else if (Timer->Recording() && Device->IsTunedToTransponder(Timer->Channel()) && (difftime(time(NULL),Timer->StartTime())<60)) { timer=Timer; break; } +#endif } if (!timer) { esyslog("markad: cannot find timer for '%s'",FileName); -- cgit v1.2.3