From 281105f0c7cdb70cfb532020cb8c3c3c8f1611e2 Mon Sep 17 00:00:00 2001 From: Frank Schmirler Date: Fri, 22 Jun 2012 08:54:47 +0200 Subject: Fixed compiler error in client/device.c with VDR < 1.7.22 (reported by Uwe@vdrportal) --- CONTRIBUTORS | 2 ++ HISTORY | 2 ++ client/device.c | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c0e54e9..0c0ae19 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -205,3 +205,5 @@ Ville Skytt Methodus for suggesting to use HTTP code 503 for unavailable channels +Uwe + for reporting a compiler error in client/device.c with VDR < 1.7.22 diff --git a/HISTORY b/HISTORY index 9eebe64..ed0087a 100644 --- a/HISTORY +++ b/HISTORY @@ -1,6 +1,8 @@ VDR Plugin 'streamdev' Revision History --------------------------------------- +- Fixed compiler error in client/device.c with VDR < 1.7.22 (reported by + Uwe@vdrportal) - Updated Italian translation (thanks to Diego Pierotto) - Added DeviceName() and DeviceType() to client device. The server IP and the number of the device used on the server are returned respectively. diff --git a/client/device.c b/client/device.c index 13c5aaa..c42924b 100644 --- a/client/device.c +++ b/client/device.c @@ -117,7 +117,11 @@ bool cStreamdevDevice::ProvidesChannel(const cChannel *Channel, int Priority, return false; } +#if APIVERSNUM >= 10722 if (IsTunedToTransponder(Channel)) { +#else + if (const_cast(this)->IsTunedToTransponder(Channel)) { +#endif if (Channel->Ca() < CA_ENCRYPTED_MIN || (Channel->Vpid() && HasPid(Channel->Vpid())) || (Channel->Apid(0) && HasPid(Channel->Apid(0)))) -- cgit v1.2.3