summaryrefslogtreecommitdiff
path: root/lcdproc.c
diff options
context:
space:
mode:
authorJoachim Wilke <vdr@joachim-wilke.de>2012-03-11 20:16:36 +0100
committerJoachim Wilke <vdr@joachim-wilke.de>2012-03-11 20:25:05 +0100
commit8cb39f7aebb3a1978369ed6121504f99fb121b49 (patch)
tree2a96286469a1c6d6ba8f503b1653b25f4847b5d9 /lcdproc.c
parentf2b97adbd413c8aed011829a4bb4981911823c0c (diff)
downloadvdr-plugin-lcdproc-8cb39f7aebb3a1978369ed6121504f99fb121b49.tar.gz
vdr-plugin-lcdproc-8cb39f7aebb3a1978369ed6121504f99fb121b49.tar.bz2
Adapt plugin to API changes in VDR 1.7.26
Diffstat (limited to 'lcdproc.c')
-rw-r--r--lcdproc.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/lcdproc.c b/lcdproc.c
index 840f805..8f41fa8 100644
--- a/lcdproc.c
+++ b/lcdproc.c
@@ -52,7 +52,11 @@ public:
private:
char * AudioTrack;
protected:
+#if VDRVERSNUM < 10726
virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber);
+#else
+ virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView);
+#endif
virtual void Recording(const cDevice *Device, const char *Name, const char *FileName, bool On);
virtual void Replaying(const cControl *DvbPlayerControl, const char *Name, const char *FileName, bool On);
virtual void SetVolume(int Volume, bool Absolute);
@@ -68,11 +72,15 @@ protected:
virtual void OsdProgramme(time_t PresentTime, const char *PresentTitle, const char *PresentSubtitle, time_t FollowingTime, const char *FollowingTitle, const char *FollowingSubtitle);
};
-
+#if VDRVERSNUM < 10726
void cLcdFeed::ChannelSwitch(const cDevice *Device, int ChannelNumber)
{
- //syslog(LOG_INFO, "lcdproc: cLcdFeed::ChannelSwitch %d %d", Device->CardIndex(), ChannelNumber);
- if ( Device && Device->IsPrimaryDevice() ) {
+ if (Device && Device->IsPrimaryDevice()) {
+#else
+void cLcdFeed::ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView)
+{
+ if (LiveView) {
+#endif
if (ChannelNumber) {
LCDproc->SetLine(1,2," ");
LCDproc->SetLine(1,3," ");