diff options
author | Joachim Wilke <vdr@joachim-wilke.de> | 2012-03-11 20:16:36 +0100 |
---|---|---|
committer | Joachim Wilke <vdr@joachim-wilke.de> | 2012-03-11 20:25:05 +0100 |
commit | 8cb39f7aebb3a1978369ed6121504f99fb121b49 (patch) | |
tree | 2a96286469a1c6d6ba8f503b1653b25f4847b5d9 /lcdproc.c | |
parent | f2b97adbd413c8aed011829a4bb4981911823c0c (diff) | |
download | vdr-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.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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," "); |